This should be long enough (with headroom) for our longest running tests, which even under MSAN, TSAN, Valgrind, etc max out at about 800s.
i.e under Valgrind I see the longer runtimes as:
0135/136 Test [#8](/bitcoin-bitcoin/8/): bench_sanity_check_high_priority ..... Passed 371.19 sec
1136/136 Test [#122](/bitcoin-bitcoin/122/): coinselector_tests ................... Passed 343.39 sec
In the CI tests
under TSAN:
0tests ................................ Passed 795.20 sec
0tests ................................ Passed 658.48 sec
This will also prevent the current issue we are seeing of ctest
running until it reaches the CI timeout, see #30969.
We still need to figure out what underlying issue is causing the tests to (sometimes) run for so long, but in the mean time, this will stop ctest
wasting our CI CPU. It should also make it more clear in the logs, exactly which test is the one that is hitting the timeout.