diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-10-02 14:09:15 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-10-02 14:26:13 +0100 |
commit | 574377636ee4eafba50580fc4d7a1d0793774332 (patch) | |
tree | 2d8bcaafa39c69dbece39f0d5c28503ebf1efe36 /tests/federation | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-574377636ee4eafba50580fc4d7a1d0793774332.tar.xz |
Add a keyword argument to get_json to avoid retrying on DNS failures. Rather than passing MatrixHttpClient.RETRY_DNS_LOOKUP_FAILURES as a fake query string parameter
Diffstat (limited to 'tests/federation')
-rw-r--r-- | tests/federation/test_federation.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/federation/test_federation.py b/tests/federation/test_federation.py index bb17e9aafe..d95b9013a3 100644 --- a/tests/federation/test_federation.py +++ b/tests/federation/test_federation.py @@ -253,7 +253,7 @@ class FederationTestCase(unittest.TestCase): response = yield self.federation.make_query( destination="remote", query_type="a-question", - args={"one": "1", "two": "2"} + args={"one": "1", "two": "2"}, ) self.assertEquals({"your": "response"}, response) @@ -261,7 +261,8 @@ class FederationTestCase(unittest.TestCase): self.mock_http_client.get_json.assert_called_with( destination="remote", path="/_matrix/federation/v1/query/a-question", - args={"one": "1", "two": "2"} + args={"one": "1", "two": "2"}, + retry_on_dns_fail=True, ) @defer.inlineCallbacks |