TUN-4177: Running with proxy-dns should not prevent running Named Tunnels

This commit is contained in:
Nuno Diegues
2021-04-05 11:09:38 +01:00
parent 1720ac0fc6
commit b25d38dd72
4 changed files with 17 additions and 7 deletions

View File

@@ -11,13 +11,13 @@ expect_message = "Starting Hello World server"
def assert_log_to_terminal(cloudflared):
stderr = cloudflared.stderr.read(1250)
stderr = cloudflared.stderr.read(1500)
assert expect_message.encode() in stderr, f"{stderr} doesn't contain {expect_message}"
def assert_log_in_file(file):
with open(file, "r") as f:
log = f.read(1500)
log = f.read(1850)
assert expect_message in log, f"{log} doesn't contain {expect_message}"