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:
parent
7ded461342
commit
36cc0e2bca
|
@ -135,7 +135,8 @@ class Scripts(ServerBase, ScriptsBase, unittest.TestCase):
|
||||||
f.write(message)
|
f.write(message)
|
||||||
|
|
||||||
wormhole = self.find_executable()
|
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_args = server_args + [
|
||||||
"send",
|
"send",
|
||||||
"--code", code,
|
"--code", code,
|
||||||
|
@ -212,7 +213,8 @@ class Scripts(ServerBase, ScriptsBase, unittest.TestCase):
|
||||||
os.mkdir(target_parent_dir)
|
os.mkdir(target_parent_dir)
|
||||||
|
|
||||||
wormhole = self.find_executable()
|
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_args = server_args + [
|
||||||
"send",
|
"send",
|
||||||
"--code", code,
|
"--code", code,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user