[test] waitBoth was a bad idea, use explicit wait and cancel

This is because waitBoth will never finish, when corenlp is started
4 jobs for 494-dev-phylo-hh-mm-ss-2 in 148 minutes and 43 seconds (queued for 5 minutes and 20 seconds)
Status Job ID Name Coverage
  Cabal
passed #19013
cabal

00:24:20

 
  Stack
passed #19014
stack

00:04:19

 
  Bench
manual #19015
allowed to fail manual
bench
 
  Test
failed #19016
test

02:00:03

 
Name Stage Failure
failed
test Test The script exceeded the maximum execution time set for the job
[Thread-0] INFO CoreNLP - CoreNLP Server is shutting down.

Test suite garg-test: PASS
Test suite logged to:
/builds/gargantext/haskell-gargantext/dist-newstyle/build/x86_64-linux/ghc-9.6.6/gargantext-0.0.7.4.8/t/garg-test/opt/test/gargantext-0.0.7.4.8-garg-test.log
1 of 1 test suites (1 of 1 test cases) passed.
Terminated
WARNING: step_script could not run to completion because the timeout was exceeded. For more control over job and script timeouts see: https://docs.gitlab.com/ee/ci/runners/configure_runners.html#set-script-and-after_script-timeouts
ERROR: Job failed: execution took longer than 2h0m0s seconds