Merge pull request #21 from dart-lang/fix-tests
Fix broken tests
diff --git a/pubspec.yaml b/pubspec.yaml
index 57a1e37..724e4d7 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: json_rpc_2
-version: 2.0.4
+version: 2.0.5-dev
author: Dart Team <misc@dartlang.org>
description: An implementation of the JSON-RPC 2.0 spec.
homepage: http://github.com/dart-lang/json_rpc_2
@@ -7,6 +7,6 @@
stack_trace: '>=0.9.1 <2.0.0'
stream_channel: '^1.1.0'
dev_dependencies:
- test: ">=0.12.0 <0.13.0"
+ test: "^0.12.21"
environment:
sdk: ">=1.8.0 <2.0.0"
diff --git a/test/server/utils.dart b/test/server/utils.dart
index f33cb13..02d9f34 100644
--- a/test/server/utils.dart
+++ b/test/server/utils.dart
@@ -61,20 +61,6 @@
})));
}
-/// Returns a matcher that matches [Future]s that never complete.
-Matcher get doesNotComplete => predicate((future) {
- future.then(expectAsync((_) {
- // This will never be called. [expectAsync] with `count: 0` ensures that an
- // error will be thrown when [future] completes.
- }, count: 0));
-
- // Make sure there's enough time in the test for [expectAsync] to fail if it's
- // going to.
- expect(pumpEventQueue(), completes);
-
- return true;
-});
-
/// Returns a matcher that matches a [json_rpc.RpcException] with an
/// `invalid_params` error code.
Matcher throwsInvalidParams(String message) {