debugging in ci
This commit is contained in:
parent
91053f01ab
commit
aff95f8f71
|
@ -46,8 +46,8 @@ 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:
|
without logContents =? logFile.readAllChars, error:
|
||||||
raiseAssert "failed to open codex log file, aborting"
|
raiseAssert "failed to open codex log file, aborting, error: " & error.msg
|
||||||
|
|
||||||
return logContents.contains(text)
|
return logContents.contains(text)
|
||||||
|
|
||||||
|
|
|
@ -51,10 +51,7 @@ marketplacesuite "Slot reservations":
|
||||||
var slotIdxFilled: seq[UInt256] = @[]
|
var slotIdxFilled: seq[UInt256] = @[]
|
||||||
proc onSlotFilled(event: SlotFilled) =
|
proc onSlotFilled(event: SlotFilled) =
|
||||||
slotIdxFilled.add event.slotIndex
|
slotIdxFilled.add event.slotIndex
|
||||||
proc onSlotReservationsFull(event: SlotReservationsFull) =
|
|
||||||
echo "Slot reservations full for slot ", event.slotIndex
|
|
||||||
|
|
||||||
let subscriptionFull = await marketplace.subscribe(SlotReservationsFull, onSlotReservationsFull)
|
|
||||||
let subscription = await marketplace.subscribe(SlotFilled, onSlotFilled)
|
let subscription = await marketplace.subscribe(SlotFilled, onSlotFilled)
|
||||||
|
|
||||||
# client requests storage but requires multiple slots to host the content
|
# client requests storage but requires multiple slots to host the content
|
||||||
|
@ -74,4 +71,3 @@ marketplacesuite "Slot reservations":
|
||||||
check logsDoNotContain(Role.Provider, "Nonce too high")
|
check logsDoNotContain(Role.Provider, "Nonce too high")
|
||||||
|
|
||||||
await subscription.unsubscribe()
|
await subscription.unsubscribe()
|
||||||
await subscriptionFull.unsubscribe()
|
|
||||||
|
|
Loading…
Reference in New Issue