selftest: Wait 60 seconds for a RID alloc
authorAndrew Bartlett <abartlet@samba.org>
Thu, 5 May 2016 10:21:11 +0000 (22:21 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 9 May 2016 23:43:14 +0000 (01:43 +0200)
This ensures we give it a reasonable enough chance to start up.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
selftest/target/Samba4.pm

index 0e4e3561e3f13119b0d9cd7003ff7568e2f8f9d3..779116dc6b8f095d04cdb6115fb1e49b09935f00 100755 (executable)
@@ -210,7 +210,7 @@ sub wait_for_start($$)
            my $count = 0;
            my $base_dn = "DC=".join(",DC=", split(/\./, $testenv_vars->{REALM}));
            my $rid_set_dn = "cn=RID Set,cn=$testenv_vars->{NETBIOSNAME},ou=domain controllers,$base_dn";
-           my $max_wait = 40;
+           my $max_wait = 60;
            sleep(1);
            while (system("$ldbsearch -H ldap://$testenv_vars->{SERVER} -U$testenv_vars->{USERNAME}%$testenv_vars->{PASSWORD} -s base -b \"$rid_set_dn\" rIDAllocationPool > /dev/null") != 0) {
                $count++;