📝 new test

This commit is contained in:
2024-10-21 18:35:54 +02:00
parent ea542df037
commit d57412b454

View File

@ -45,6 +45,20 @@ tests =
r <- jobWait spc j
r @?= Done
x <- readIORef ref
x @?= True,
testCase "Adding job before worker" $ do
ref <- newIORef False
spc <- startSPC
j <- jobAdd spc $ Job (writeIORef ref True) 1
w <- workerAdd spc "R5-D4"
isRight w @?= True
r <- jobWait spc j
r @?= Done
x <- readIORef ref
x @?= True,
testCase "Running two jobs" $ do