Skip to content

Commit

Permalink
Stop using deprecated pkg/test apis
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Dec 19, 2017
1 parent 9153c3d commit 2b7bb86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ dependencies:
dev_dependencies:
benchmark_harness: '^1.0.4'
scheduled_test: '^0.12.0'
test: '^0.12.0'
test: '^0.12.18+1'
4 changes: 2 additions & 2 deletions test/no_subscription/shared.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void sharedTests() {

// Subscribe to the events.
var completer = new Completer();
var subscription = watcher.events.listen(expectAsync((event) {
var subscription = watcher.events.listen(expectAsync1((event) {
expect(event, isWatchEvent(ChangeType.ADD, "file.txt"));
completer.complete();
}));
Expand All @@ -39,7 +39,7 @@ void sharedTests() {
// Then start listening again.
schedule(() {
completer = new Completer();
subscription = watcher.events.listen(expectAsync((event) {
subscription = watcher.events.listen(expectAsync1((event) {
// We should get an event for the third file, not the one added while
// we weren't subscribed.
expect(event, isWatchEvent(ChangeType.ADD, "added.txt"));
Expand Down

0 comments on commit 2b7bb86

Please sign in to comment.