mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-09 12:35:51 +00:00
Fix enums in tests
This commit is contained in:
parent
6b64c253f1
commit
627e6ae5a6
@ -101,7 +101,7 @@ asyncchecksuite "Sales agent":
|
|||||||
clock.set(market.requestExpiry[request.id] + 1)
|
clock.set(market.requestExpiry[request.id] + 1)
|
||||||
check eventually onCancelCalled
|
check eventually onCancelCalled
|
||||||
|
|
||||||
for requestState in {RequestState.New, Started, Finished, Failed}:
|
for requestState in {RequestState.New, RequestState.Started, RequestState.Finished, RequestState.Failed}:
|
||||||
test "onCancelled is not called when request state is " & $requestState:
|
test "onCancelled is not called when request state is " & $requestState:
|
||||||
agent.start(MockState.new())
|
agent.start(MockState.new())
|
||||||
await agent.subscribe()
|
await agent.subscribe()
|
||||||
@ -110,7 +110,7 @@ asyncchecksuite "Sales agent":
|
|||||||
await sleepAsync(100.millis)
|
await sleepAsync(100.millis)
|
||||||
check not onCancelCalled
|
check not onCancelCalled
|
||||||
|
|
||||||
for requestState in {RequestState.Started, Finished, Failed}:
|
for requestState in {RequestState.Started, RequestState.Finished, RequestState.Failed}:
|
||||||
test "cancelled future is finished when request state is " & $requestState:
|
test "cancelled future is finished when request state is " & $requestState:
|
||||||
agent.start(MockState.new())
|
agent.start(MockState.new())
|
||||||
await agent.subscribe()
|
await agent.subscribe()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user