Fix enums in tests

This commit is contained in:
Arnaud 2024-12-26 07:19:44 +01:00
parent 6b64c253f1
commit 627e6ae5a6
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ asyncchecksuite "Sales agent":
clock.set(market.requestExpiry[request.id] + 1)
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:
agent.start(MockState.new())
await agent.subscribe()
@ -110,7 +110,7 @@ asyncchecksuite "Sales agent":
await sleepAsync(100.millis)
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:
agent.start(MockState.new())
await agent.subscribe()