File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1+ using Xunit ;
2+
3+ [ assembly: CollectionBehavior ( DisableTestParallelization = true ) ]
4+
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ public void DisposeWatch()
164164 ) ;
165165
166166 // wait at least an event
167- Thread . Sleep ( TimeSpan . FromMilliseconds ( 500 ) ) ;
167+ Thread . Sleep ( TimeSpan . FromMilliseconds ( 1000 ) ) ;
168168
169169 Assert . NotEmpty ( events ) ;
170170 Assert . True ( watcher . Watching ) ;
@@ -174,7 +174,7 @@ public void DisposeWatch()
174174 events . Clear ( ) ;
175175
176176 // make sure wait event called
177- Thread . Sleep ( TimeSpan . FromMilliseconds ( 500 ) ) ;
177+ Thread . Sleep ( TimeSpan . FromMilliseconds ( 1000 ) ) ;
178178 Assert . Empty ( events ) ;
179179 Assert . False ( watcher . Watching ) ;
180180
@@ -223,7 +223,7 @@ public void WatchAllEvents()
223223 ) ;
224224
225225 // wait server yields all events
226- Thread . Sleep ( TimeSpan . FromMilliseconds ( 750 ) ) ;
226+ Thread . Sleep ( TimeSpan . FromMilliseconds ( 1000 ) ) ;
227227
228228 Assert . Contains ( WatchEventType . Added , events ) ;
229229 Assert . Contains ( WatchEventType . Deleted , events ) ;
@@ -266,7 +266,7 @@ public void WatchServerDisconnect()
266266 }
267267
268268 // wait server down
269- Thread . Sleep ( TimeSpan . FromMilliseconds ( 500 ) ) ;
269+ Thread . Sleep ( TimeSpan . FromMilliseconds ( 1000 ) ) ;
270270
271271 Assert . False ( watcher . Watching ) ;
272272 Assert . IsType < IOException > ( exceptionCatched ) ;
You can’t perform that action at this time.
0 commit comments