From bab9c1f6946c90f0d040da3a4803916c5f9b14ee Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:59:18 +1100 Subject: [PATCH] debugging on ci --- tests/integration/codexprocess.nim | 8 ++++++-- tests/integration/testslotreservations.nim | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/integration/codexprocess.nim b/tests/integration/codexprocess.nim index e9b55f82..e8f404cc 100644 --- a/tests/integration/codexprocess.nim +++ b/tests/integration/codexprocess.nim @@ -46,8 +46,12 @@ method logFileContains*(node: CodexProcess, text: string): bool = without logFile =? config.logFile.?string: raiseAssert "codex node does have a --log-file option set (use .withLogFile())" - without logContents =? logFile.readAllChars, error: - raiseAssert "failed to open codex log file, aborting, error: " & error.msg + let resLogContents = logFile.readAllChars + if resLogContents.isErr: + # without logContents =? logFile.readAllChars: + raiseAssert "failed to open codex log file, aborting (log path: " & logFile & ")" + + let logContents = resLogContents.value return logContents.contains(text) diff --git a/tests/integration/testslotreservations.nim b/tests/integration/testslotreservations.nim index 44a01733..f8c29bee 100644 --- a/tests/integration/testslotreservations.nim +++ b/tests/integration/testslotreservations.nim @@ -68,6 +68,7 @@ marketplacesuite "Slot reservations": # wait until all slots filled check eventually(slotIdxFilled.len == 5, timeout=expiry.int * 1000) - check logsDoNotContain(Role.Provider, "Nonce too high") + teardown: + check logsDoNotContain(Role.Provider, "Nonce too high") await subscription.unsubscribe()