diff --git a/deploy/nixos/test.nix b/deploy/nixos/test.nix index a3bcfe5..667f01e 100644 --- a/deploy/nixos/test.nix +++ b/deploy/nixos/test.nix @@ -104,9 +104,10 @@ pkgs.testers.runNixOSTest { out = client.succeed(uclient.format(creds["password"]) + " 2>&1") print(out) sent = re.search(r"tot_recv_msgs=(\d+)", out) - assert sent and int(sent.group(1)) > 0, "no packet came back through coturn" + # The output goes into the message: Nix keeps only the last lines of a failed test's log. + assert sent and int(sent.group(1)) > 0, "no packet came back through coturn: " + out[-2500:] refused = client.fail(uclient.format(b64(os.urandom(20))) + " 2>&1") - assert "401" in refused, refused + assert "401" in refused, "a wrong password was not refused with 401: " + refused[-2500:] assert call("GET", "/v0/mailboxes/" + mid + "/blobs?wait=1", token=fetch) == "200" # Refusals: a wrong token, a malformed id, a body that is not JSON.