debugging on ci
This commit is contained in:
parent
7b015a9805
commit
bab9c1f694
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
check logsDoNotContain(Role.Provider, "Nonce too high")
|
teardown:
|
||||||
|
check logsDoNotContain(Role.Provider, "Nonce too high")
|
||||||
|
|
||||||
await subscription.unsubscribe()
|
await subscription.unsubscribe()
|
||||||
|
|
Loading…
Reference in New Issue