File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -146,16 +146,16 @@ def test_secret_files_missing(self, config_str: str) -> None:
146146 [
147147 (
148148 "turn_shared_secret_path: {}" ,
149- lambda c : c .voip .turn_shared_secret ,
149+ lambda c : c .voip .turn_shared_secret . encode ( "utf-8" ) ,
150150 ),
151151 (
152152 "registration_shared_secret_path: {}" ,
153- lambda c : c .registration .registration_shared_secret ,
153+ lambda c : c .registration .registration_shared_secret . encode ( "utf-8" ) ,
154154 ),
155155 * [
156156 (
157157 "redis:\n enabled: true\n password_path: {}" ,
158- lambda c : c .redis .redis_password ,
158+ lambda c : c .redis .redis_password . encode ( "utf-8" ) ,
159159 )
160160 ]
161161 * (hiredis is not None ),
@@ -171,4 +171,4 @@ def test_secret_files_existing(
171171 self .add_lines_to_config (["" , config_line .format (secret_file .name )])
172172 config = HomeServerConfig .load_config ("" , ["-c" , self .config_file ])
173173
174- self .assertEqual (get_secret (config ), "53C237" )
174+ self .assertEqual (get_secret (config ), b "53C237" )
You can’t perform that action at this time.
0 commit comments