mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-23 23:40:47 +02:00
NTFileStoreTests: Reduce the possibility of a race condition
This commit is contained in:
parent
4b06f74d6e
commit
6232f76f6e
2 changed files with 3 additions and 1 deletions
|
@ -38,6 +38,7 @@ namespace SMBLibrary.Tests
|
|||
NTStatus status = m_fileStore.NotifyChange(out ioRequest, handle, NotifyChangeFilter.FileName | NotifyChangeFilter.LastWrite | NotifyChangeFilter.DirName, false, 8192, OnNotifyChangeCompleted, null);
|
||||
Assert.IsTrue(status == NTStatus.STATUS_PENDING);
|
||||
|
||||
Thread.Sleep(1);
|
||||
m_fileStore.Cancel(ioRequest);
|
||||
m_fileStore.CloseFile(handle);
|
||||
while (m_notifyChangeStatus == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue