Rewrite testPrios test

This commit partially rewrites the `testPrios` queue test, in such a way
that it's now easier to inspect the final schedule and the occurrence of events.
Albeit not perfect, it should be less sensitive to random failures,
like the ones we have been observing on CI.
3 jobs for adinapoli/issue-198 in 28 minutes and 57 seconds (queued for 50 seconds)
Status Job ID Name Coverage
  Test
failed #6572
deps

00:09:20

failed #6573
docs

00:09:09

failed #6574
test

00:10:28

 
Name Stage Failure
failed
test Test
servant-job                      > Installing executable servant-job-calc-example in /builds/gargantext/haskell-gargantext/.stack-root/snapshots/x86_64-linux/99d8757cda1194dac20166169e28b18fb67befd4cbdb67262b31bedb9549c481/8.10.6/bin
servant-job > Installing executable servant-job-scrapy-example in /builds/gargantext/haskell-gargantext/.stack-root/snapshots/x86_64-linux/99d8757cda1194dac20166169e28b18fb67befd4cbdb67262b31bedb9549c481/8.10.6/bin
servant-job > Registering library for servant-job-0.2.0.0..

-- While building package haskell-igraph-0.10.4 (scroll up to its section to see the error) using:
/builds/gargantext/haskell-gargantext/.stack-root/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.6 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.2.1.0 build --ghc-options ""
Process exited with code: ExitFailure 1
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
docs Test
opaleye                          > copy/register
opaleye > Installing library in /builds/gargantext/haskell-gargantext/.stack-root/snapshots/x86_64-linux/99d8757cda1194dac20166169e28b18fb67befd4cbdb67262b31bedb9549c481/8.10.6/lib/x86_64-linux-ghc-8.10.6/opaleye-0.9.6.1-HdhlDzSoohPEf7LIKQK9I4
opaleye > Registering library for opaleye-0.9.6.1..

-- While building package haskell-igraph-0.10.4 (scroll up to its section to see the error) using:
/builds/gargantext/haskell-gargantext/.stack-root/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.6 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.2.1.0 build --ghc-options ""
Process exited with code: ExitFailure 1
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
deps Test
opaleye                          > copy/register
opaleye > Installing library in /builds/gargantext/haskell-gargantext/.stack-root/snapshots/x86_64-linux/99d8757cda1194dac20166169e28b18fb67befd4cbdb67262b31bedb9549c481/8.10.6/lib/x86_64-linux-ghc-8.10.6/opaleye-0.9.6.1-HdhlDzSoohPEf7LIKQK9I4
opaleye > Registering library for opaleye-0.9.6.1..

-- While building package haskell-igraph-0.10.4 (scroll up to its section to see the error) using:
/builds/gargantext/haskell-gargantext/.stack-root/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.6 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.2.1.0 build --ghc-options ""
Process exited with code: ExitFailure 1
Cleaning up file based variables
ERROR: Job failed: exit code 1