Skip to content

Commit bab9c1f

Browse files
committed
debugging on ci
1 parent 7b015a9 commit bab9c1f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Diff for: tests/integration/codexprocess.nim

+6-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@ method logFileContains*(node: CodexProcess, text: string): bool =
4646
without logFile =? config.logFile.?string:
4747
raiseAssert "codex node does have a --log-file option set (use .withLogFile())"
4848

49-
without logContents =? logFile.readAllChars, error:
50-
raiseAssert "failed to open codex log file, aborting, error: " & error.msg
49+
let resLogContents = logFile.readAllChars
50+
if resLogContents.isErr:
51+
# without logContents =? logFile.readAllChars:
52+
raiseAssert "failed to open codex log file, aborting (log path: " & logFile & ")"
53+
54+
let logContents = resLogContents.value
5155

5256
return logContents.contains(text)
5357

Diff for: tests/integration/testslotreservations.nim

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ marketplacesuite "Slot reservations":
6868
# wait until all slots filled
6969
check eventually(slotIdxFilled.len == 5, timeout=expiry.int * 1000)
7070

71-
check logsDoNotContain(Role.Provider, "Nonce too high")
71+
teardown:
72+
check logsDoNotContain(Role.Provider, "Nonce too high")
7273

7374
await subscription.unsubscribe()

0 commit comments

Comments
 (0)