test: make spawnSync() test robust
The test had checked that a timer fired within a period after spawnSync() returns. The result was a test that sometimes was flaky.
Because there's no guarantee of how long a timer will take before running, remove the check. There is a check that the timer runs after spawnSync() so that is sufficient.