[tests] fix tests hanging

Also, changed exceptions to safe
4 jobs for 304-dev-toml-config-rewrite in 14 minutes and 32 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Cabal
failed #14742
cabal

00:14:32

 
  Stack
skipped #14743
stack
 
  Bench
skipped #14744
allowed to fail manual
bench
 
  Test
skipped #14745
test
 
Name Stage Failure
failed
cabal Cabal
+ actual_cabal_project_freeze_hash=c6b5f3024cbd47a1290ffb90b7785c06c60aec7d5fa47b98787c8d0a3d8d10e6
ERROR! hash mismatch between expected cabal.project and the one computed by cabal2stack.
Please update the hashes inside the './bin/update-project-dependencies' file.
+ [[ e3b7610fda785be9d103e0c6b22ecfa777f0e156fdf7563100672a65d5cca097 != ebcccf8bd6ad8ea5adad45f63c7c1eb2026439fe19bd06840d5d962e8ce05c38 ]]
+ echo -e '\e[31mERROR! hash mismatch between expected cabal.project and the one computed by cabal2stack.\e[0m'
+ echo -e '\e[33mPlease update the hashes inside the '\''./bin/update-project-dependencies'\'' file.\e[0m'
+ exit 1
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1