📝 new test
This commit is contained in:
@ -45,6 +45,20 @@ tests =
|
|||||||
r <- jobWait spc j
|
r <- jobWait spc j
|
||||||
r @?= Done
|
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 <- readIORef ref
|
||||||
x @?= True,
|
x @?= True,
|
||||||
testCase "Running two jobs" $ do
|
testCase "Running two jobs" $ do
|
||||||
|
Reference in New Issue
Block a user