Przeglądaj źródła

The usleep in unit tests was too short

Stéphane Raimbault 14 lat temu
rodzic
commit
b76b3952ef
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tests/unit-test-client.c

+ 1 - 1
tests/unit-test-client.c

@@ -570,7 +570,7 @@ int main(int argc, char *argv[])
     modbus_set_timeout_begin(ctx, &timeout_begin_old);
 
     /* Wait for data before flushing */
-    usleep(100);
+    usleep(250000);
     modbus_flush(ctx);
 
     /** BAD RESPONSE **/