Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #21 from dart-lang/fix-tests
Browse files Browse the repository at this point in the history
Fix broken tests
  • Loading branch information
grouma authored Jun 5, 2017
2 parents b54f22a + 4fc9a04 commit 8c6e4e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: json_rpc_2
version: 2.0.4
version: 2.0.5-dev
author: Dart Team <[email protected]>
description: An implementation of the JSON-RPC 2.0 spec.
homepage: http://github.com/dart-lang/json_rpc_2
dependencies:
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"
14 changes: 0 additions & 14 deletions test/server/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,6 @@ void expectErrorResponse(ServerController controller, request, int errorCode,
})));
}

/// 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) {
Expand Down

0 comments on commit 8c6e4e0

Please sign in to comment.