fix: increase sleep durations in WAV load test to prevent false failure

Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-11 21:31:29 +00:00
parent 5430795510
commit 54fa307360

View File

@@ -921,7 +921,7 @@ static int test_wav_load(void) {
kill(pid, SIGTERM); waitpid(pid, NULL, 0); kill(pid, SIGTERM); waitpid(pid, NULL, 0);
unlink("loop.wav"); return 1; unlink("loop.wav"); return 1;
} }
safe_usleep(500000); /* give time for load to complete */ safe_usleep(1000000); /* give time for load to complete */
/* listen for the loop */ /* listen for the loop */
int sr = jack_get_sample_rate(client); int sr = jack_get_sample_rate(client);
continuous_sine = 0; continuous_sine = 0;
@@ -944,7 +944,7 @@ static int test_wav_load(void) {
unlink("loop.wav"); unlink("loop.wav");
return 1; return 1;
} }
safe_usleep(3000000); safe_usleep(4000000);
jack_deactivate(client); jack_deactivate(client);
jack_client_close(client); jack_client_close(client);
kill(pid, SIGTERM); waitpid(pid, NULL, 0); kill(pid, SIGTERM); waitpid(pid, NULL, 0);