From e1e759585eecdb5e2d1cb0d1eccfb756368fb74c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 15 May 2007 08:01:30 +0000 Subject: r22886: Workaround to make RAW-NOTIFY a bit more reliable against Samba3. It might take a bit for events to propagate from one to another connection, in particular with a process per connection. (This used to be commit 0c7a518b2dad83dc78f3e3058fd8e1267d0e928f) --- source4/torture/raw/notify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/torture/raw/notify.c b/source4/torture/raw/notify.c index 74f33f0dbd9..841238ea3da 100644 --- a/source4/torture/raw/notify.c +++ b/source4/torture/raw/notify.c @@ -137,6 +137,7 @@ static BOOL test_notify_dir(struct smbcli_state *cli, struct smbcli_state *cli2, smbcli_rmdir(cli2->tree, BASEDIR "\\subdir-name"); smbcli_mkdir(cli2->tree, BASEDIR "\\subdir-name"); smbcli_rmdir(cli2->tree, BASEDIR "\\subdir-name"); + msleep(200); req = smb_raw_changenotify_send(cli->tree, ¬ify); status = smb_raw_changenotify_recv(req, mem_ctx, ¬ify); CHECK_STATUS(status, NT_STATUS_OK); -- cgit