diff options
author | Richard van der Hoff <richard@matrix.org> | 2019-01-22 17:35:09 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2019-01-22 20:35:12 +0000 |
commit | 53a327b4d5bdcab36651aa86ddf1815ff86e5db2 (patch) | |
tree | e10bb401e66216757ed73fe3c318547fea24bc26 /tests/http | |
parent | changelog (diff) | |
download | synapse-53a327b4d5bdcab36651aa86ddf1815ff86e5db2.tar.xz |
Require that service_name be a byte string
it is only ever a bytes now, so let's enforce that.
Diffstat (limited to 'tests/http')
-rw-r--r-- | tests/http/federation/test_srv_resolver.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/http/federation/test_srv_resolver.py b/tests/http/federation/test_srv_resolver.py index 1271a495e1..de4d0089c8 100644 --- a/tests/http/federation/test_srv_resolver.py +++ b/tests/http/federation/test_srv_resolver.py @@ -83,7 +83,7 @@ class SrvResolverTestCase(unittest.TestCase): dns_client_mock = Mock() dns_client_mock.lookupService.return_value = defer.fail(error.DNSServerError()) - service_name = "test_service.example.com" + service_name = b"test_service.example.com" entry = Mock(spec_set=["expires"]) entry.expires = 0 @@ -106,7 +106,7 @@ class SrvResolverTestCase(unittest.TestCase): dns_client_mock = Mock(spec_set=['lookupService']) dns_client_mock.lookupService = Mock(spec_set=[]) - service_name = "test_service.example.com" + service_name = b"test_service.example.com" entry = Mock(spec_set=["expires"]) entry.expires = 999999999 @@ -128,7 +128,7 @@ class SrvResolverTestCase(unittest.TestCase): dns_client_mock.lookupService.return_value = defer.fail(error.DNSServerError()) - service_name = "test_service.example.com" + service_name = b"test_service.example.com" cache = {} @@ -141,7 +141,7 @@ class SrvResolverTestCase(unittest.TestCase): dns_client_mock.lookupService.return_value = defer.fail(error.DNSNameError()) - service_name = "test_service.example.com" + service_name = b"test_service.example.com" cache = {} |