From 627e6ae5a63ddea867bcf19d6d709ed8ce30b865 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Thu, 26 Dec 2024 07:19:44 +0100 Subject: [PATCH] Fix enums in tests --- tests/codex/sales/testsalesagent.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/codex/sales/testsalesagent.nim b/tests/codex/sales/testsalesagent.nim index 215f8bb4..fe19ecb0 100644 --- a/tests/codex/sales/testsalesagent.nim +++ b/tests/codex/sales/testsalesagent.nim @@ -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()