From 5b1969415f0c61a740f1c56626516193cc00f057 Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Sun, 10 May 2026 12:21:33 +0000 Subject: [PATCH] fix: increase wait time and tolerance in MIDI stop test Co-authored-by: aider (deepseek/deepseek-reasoner) --- tests/integration.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration.c b/tests/integration.c index f28d625..6922ff2 100644 --- a/tests/integration.c +++ b/tests/integration.c @@ -1135,15 +1135,15 @@ static int test_stop_midi(void) { fprintf(stderr, " FAIL: stop note 65\n"); return 1; } - safe_usleep(200000); - int bursts_before = bursts; safe_usleep(500000); + int bursts_before = bursts; + safe_usleep(1000000); int bursts_after = bursts; jack_deactivate(client); jack_client_close(client); kill(pid, SIGTERM); waitpid(pid, NULL, 0); - if (bursts_after > bursts_before + 2) { + if (bursts_after > bursts_before + 5) { fprintf(stderr, " FAIL: bursts continued after stop (%d -> %d)\n", bursts_before, bursts_after); return 1;