[tests] fix job progress test (order of array insert)

parent 8ce6fba6
......@@ -368,7 +368,7 @@ testMarkProgress = do
liftIO $ threadDelay 100_000
st <- getLatestJobStatus hdl
-- liftIO $ atomically $ writeTBQueue evts st
liftIO $ atomically $ modifyTVar evts (\xs -> st:xs)
liftIO $ atomically $ modifyTVar evts (\xs -> xs ++ [st])
readAllEvents = do
-- We will get thread blocking if there is ANY error in the job
-- Hence we assert the `readAllEvents` test doesn't take too long
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment