tests: Wait longer for dns_srv to start
authorAndreas Schneider <asn@samba.org>
Thu, 17 Oct 2019 15:44:51 +0000 (17:44 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Sun, 20 Oct 2019 12:59:54 +0000 (14:59 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
tests/torture.c

index 1164732250ac8438041bdaf12bb02556dc2567b9..f6de6d993f9336656ab72c101ca4d3b1f0c54616 100644 (file)
@@ -221,7 +221,8 @@ static void torture_setup_dns_srv_ip(void **state,
                }
 
                rc = stat(s->srv_pidfile, &sb);
-               usleep(200);
+               /* Wait 200 ms before retrying */
+               usleep(200 * 1000);
        } while (rc != 0);
        assert_int_equal(rc, 0);