From 5d31770a46ae8e40496a25ccd4b2d5726fcbcff3 Mon Sep 17 00:00:00 2001 From: Laudin Molina Troconis Date: Mon, 23 Mar 2026 15:10:03 +0100 Subject: [PATCH] test(sapi): avoid time-based false negatives in test_serialapi Increase ACK timeout in the test harness so malformed-frame assertions validate parser behavior instead of failing due to slow tests execution due because of the host. This is most notably when the test rans in a Docker container that relies in QEMU to run an armv7 on amd64. Related-to: ZGW-3458 Origin: https://github.com/SiliconLabs/zipgateway/pull/49 Signed-off-by: Laudin Molina Troconis --- test/serialapi/test_serialapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/serialapi/test_serialapi.c b/test/serialapi/test_serialapi.c index ed9a6d0..657e7e8 100644 --- a/test/serialapi/test_serialapi.c +++ b/test/serialapi/test_serialapi.c @@ -126,7 +126,7 @@ uint8_t Device_SendFrame(session_t *session) { { fd_set rfds; - struct timeval tv = {.tv_usec = 100}; + struct timeval tv = {.tv_usec = 1000}; FD_ZERO(&rfds); FD_SET(end_device, &rfds);