test-fullmode-with-stun: Use portable g_usleep() for MSVC
authorOlivier Crête <olivier.crete@collabora.com>
Fri, 2 Aug 2019 16:57:18 +0000 (12:57 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 2 Aug 2019 16:57:26 +0000 (12:57 -0400)
tests/test-fullmode-with-stun.c

index 7d0b9fd..67d35f2 100644 (file)
@@ -28,7 +28,7 @@ main (int argc, char ** argv)
    stund_proc = g_subprocess_new (G_SUBPROCESS_FLAGS_NONE, &gerr,
                                   stund, NICE_STUN_SERVER_PORT, NULL);
 
-   sleep(1);
+   g_usleep(G_USEC_PER_SEC);
 
    launcher = g_subprocess_launcher_new (G_SUBPROCESS_FLAGS_NONE);