Skip to content

Commit

Permalink
selftest: check for winbind on 1-second basis
Browse files Browse the repository at this point in the history
There is a chance to reduce the overall time spent checking.

Signed-off-by: Michael Adam <[email protected]>
Reviewed-by: Volker Lendecke <[email protected]>
  • Loading branch information
obnoxxx authored and vlendec committed Jul 12, 2016
1 parent e8bab7e commit 25fee06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions selftest/target/Samba3.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1888,11 +1888,11 @@ sub wait_for_start($$$$$)
do {
$ret = system("SELFTEST_WINBINDD_SOCKET_DIR=" . $envvars->{SELFTEST_WINBINDD_SOCKET_DIR} . " " . Samba::bindir_path($self, "wbinfo") . " --ping-dc");
if ($ret != 0) {
sleep(2);
sleep(1);
}
$count++;
} while ($ret != 0 && $count < 10);
if ($count == 10) {
} while ($ret != 0 && $count < 20);
if ($count == 20) {
print "WINBINDD not reachable after 20 seconds\n";
teardown_env($self, $envvars);
return 0;
Expand Down

0 comments on commit 25fee06

Please sign in to comment.