fix: increase sleep duration in WAV load test to ensure control key processing

Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-12 19:03:22 +00:00
parent 6344eaed47
commit c041645019

View File

@@ -969,7 +969,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(200000); safe_usleep(1000000); /* 1 second to ensure control key is processed */
if (send_jack_note_on("looper:control", 70, 127) != 0) { if (send_jack_note_on("looper:control", 70, 127) != 0) {
jack_deactivate(client); jack_deactivate(client);
jack_client_close(client); jack_client_close(client);