Prevent tests to timeout on architectures that are slow.
Fixes #3319
The test in #3319 timed out on a milk-v pioneer machine, which is probably the fastest risc hardware that currently exists.