From 36cc0e2bca020f645db61e419e15285b52317f07 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 12 Feb 2016 17:11:06 -0800 Subject: [PATCH] tests: don't use network Some tests failed to override --transit-helper, which meant they intermittently talked to the real transit server (briefly, before deciding the local+direct connection was better). --- src/wormhole/test/test_scripts.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wormhole/test/test_scripts.py b/src/wormhole/test/test_scripts.py index 74c4106..36f64bf 100644 --- a/src/wormhole/test/test_scripts.py +++ b/src/wormhole/test/test_scripts.py @@ -135,7 +135,8 @@ class Scripts(ServerBase, ScriptsBase, unittest.TestCase): f.write(message) wormhole = self.find_executable() - server_args = ["--relay-url", self.relayurl] + server_args = ["--relay-url", self.relayurl, + "--transit-helper", self.transit] send_args = server_args + [ "send", "--code", code, @@ -212,7 +213,8 @@ class Scripts(ServerBase, ScriptsBase, unittest.TestCase): os.mkdir(target_parent_dir) wormhole = self.find_executable() - server_args = ["--relay-url", self.relayurl] + server_args = ["--relay-url", self.relayurl, + "--transit-helper", self.transit] send_args = server_args + [ "send", "--code", code,