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 22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
44
5- @TestOn ('linux || mac-os' )
6- library ;
7-
85import 'package:test/test.dart' ;
96import 'package:watcher/watcher.dart' ;
107
Original file line number Diff line number Diff line change @@ -65,4 +65,9 @@ void sharedTests() {
6565 await Future <void >.delayed (const Duration (milliseconds: 10 ));
6666 await sub.cancel ();
6767 });
68+
69+ test ('ready completes even if file does not exist' , () async {
70+ // startWatcher awaits 'ready'
71+ await startWatcher (path: 'foo/bar/baz' );
72+ });
6873}
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ void sharedTests() {
6969 expect (watcher.ready, doesNotComplete);
7070 });
7171
72- test ('completes even if directory does not exist' , () async {
72+ test ('ready completes even if directory does not exist' , () async {
7373 var watcher = createWatcher (path: 'does/not/exist' );
7474
7575 // Subscribe to the events (else ready will never fire).
You can’t perform that action at this time.
0 commit comments