r14969: ensure that even on slow machines we leave plenty of time for a series
authorAndrew Tridgell <tridge@samba.org>
Sat, 8 Apr 2006 00:47:15 +0000 (00:47 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:00:48 +0000 (14:00 -0500)
of events to propogate internally in smbd before asking for them

(the test was failing on slow machines)
(This used to be commit a493539458ff092262667d07b0dab2f2ee1ba7bf)

source4/torture/raw/notify.c

index 8d024f983c3c8b6dbd5c646a1141d76efeff17a2..486869598ec0e98187b3c9b47bb238d17f012425 100644 (file)
@@ -214,7 +214,7 @@ static BOOL test_notify_dir(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
 
        /* and we now see the rest of the unlink calls on both directory handles */
        notify.in.file.fnum = fnum;
-       msleep(10);
+       sleep(1);
        req = smb_raw_changenotify_send(cli->tree, &notify);
        status = smb_raw_changenotify_recv(req, mem_ctx, &notify);
        CHECK_STATUS(status, NT_STATUS_OK);