Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions test/file_watcher/polling_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

@TestOn('linux || mac-os')
library;

import 'package:test/test.dart';
import 'package:watcher/watcher.dart';

Expand Down
5 changes: 5 additions & 0 deletions test/file_watcher/shared.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@ void sharedTests() {
await Future<void>.delayed(const Duration(milliseconds: 10));
await sub.cancel();
});

test('ready completes even if file does not exist', () async {
// startWatcher awaits 'ready'
await startWatcher(path: 'foo/bar/baz');
});
}
2 changes: 1 addition & 1 deletion test/ready/shared.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void sharedTests() {
expect(watcher.ready, doesNotComplete);
});

test('completes even if directory does not exist', () async {
test('ready completes even if directory does not exist', () async {
var watcher = createWatcher(path: 'does/not/exist');

// Subscribe to the events (else ready will never fire).
Expand Down