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).
This commit is contained in:
Brian Warner 2016-02-12 17:11:06 -08:00
parent 7ded461342
commit 36cc0e2bca

View File

@ -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,