debugging on ci

This commit is contained in:
Eric 2024-10-30 10:59:18 +11:00
parent aff95f8f71
commit 838715beca
No known key found for this signature in database
2 changed files with 8 additions and 3 deletions

View File

@ -46,8 +46,12 @@ method logFileContains*(node: CodexProcess, text: string): bool =
without logFile =? config.logFile.?string: without logFile =? config.logFile.?string:
raiseAssert "codex node does have a --log-file option set (use .withLogFile())" raiseAssert "codex node does have a --log-file option set (use .withLogFile())"
without logContents =? logFile.readAllChars, error: let resLogContents = logFile.readAllChars
raiseAssert "failed to open codex log file, aborting, error: " & error.msg 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) return logContents.contains(text)

View File

@ -68,6 +68,7 @@ marketplacesuite "Slot reservations":
# wait until all slots filled # wait until all slots filled
check eventually(slotIdxFilled.len == 5, timeout=expiry.int * 1000) check eventually(slotIdxFilled.len == 5, timeout=expiry.int * 1000)
teardown:
check logsDoNotContain(Role.Provider, "Nonce too high") check logsDoNotContain(Role.Provider, "Nonce too high")
await subscription.unsubscribe() await subscription.unsubscribe()