Fixing a flaky watchdog test

Fix done as recommended by @alq666