Skip to content

Commit

Permalink
debugging on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
emizzle committed Dec 17, 2024
1 parent aff95f8 commit 838715b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions tests/integration/codexprocess.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion tests/integration/testslotreservations.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 838715b

Please sign in to comment.