On rare occasion (about 1/1000 run on my machine), the test will fail to find the vote finalization message in the log, because we don't keep sending the vote over the timeout period. This diff uses a retry mechanism to work around this.
Because the default timeout for assert_debug_log is 2s and there are 5 retries, the total timeout is slightly bumped to 12s which is not significant.