Skip to content

Commit 4d55f9b

Browse files
committed
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: #49 Signed-off-by: Laudin Molina Troconis <laudin.molinatroconis@silabs.com>
1 parent d90e936 commit 4d55f9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/serialapi/test_serialapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ uint8_t Device_SendFrame(session_t *session) {
126126

127127
{
128128
fd_set rfds;
129-
struct timeval tv = {.tv_usec = 100};
129+
struct timeval tv = {.tv_usec = 1000};
130130

131131
FD_ZERO(&rfds);
132132
FD_SET(end_device, &rfds);

0 commit comments

Comments
 (0)