File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
- @TestOn ('linux || mac-os' )
6
- library ;
7
-
8
5
import 'package:test/test.dart' ;
9
6
import 'package:watcher/watcher.dart' ;
10
7
Original file line number Diff line number Diff line change @@ -65,4 +65,9 @@ void sharedTests() {
65
65
await Future <void >.delayed (const Duration (milliseconds: 10 ));
66
66
await sub.cancel ();
67
67
});
68
+
69
+ test ('ready completes even if file does not exist' , () async {
70
+ // startWatcher awaits 'ready'
71
+ await startWatcher (path: 'foo/bar/baz' );
72
+ });
68
73
}
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ void sharedTests() {
69
69
expect (watcher.ready, doesNotComplete);
70
70
});
71
71
72
- test ('completes even if directory does not exist' , () async {
72
+ test ('ready completes even if directory does not exist' , () async {
73
73
var watcher = createWatcher (path: 'does/not/exist' );
74
74
75
75
// Subscribe to the events (else ready will never fire).
You can’t perform that action at this time.
0 commit comments