Add additional check to vmservice/websocket_client test.

Fix type errors in update_homebrew script.

BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org//652833005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41166 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
whesse@google.com 2014-10-17 12:11:27 +00:00
parent 621f291a27
commit 3430239194
2 changed files with 4 additions and 2 deletions

View file

@ -21,6 +21,8 @@ class ClientsRequestTest extends ServiceWebSocketRequestHelper {
// Verify response is correct for 'vm' sequence id.
Expect.equals('VM', response['type']);
_count++;
} else {
Expect.fail('Unexpected response from $seq: $response');
}
if (_count == 2) {
// After receiving both responses, the test is complete.

View file

@ -46,7 +46,7 @@ Future<String> getVersion(String channel, int revision) {
.whenComplete(client.close);
}
Future<Map> setCurrentRevisions(Map revisions) {
Future setCurrentRevisions(Map revisions) {
return new File('$repository/dart.rb')
.readAsLines()
.then((lines) {
@ -58,7 +58,7 @@ Future<Map> setCurrentRevisions(Map revisions) {
});
}
Future<Map> setHashes(Map revisions, Map hashes) {
Future setHashes(Map revisions, Map hashes) {
List waitOn = [];
for (var channel in CHANNELS) {
hashes[channel] = {};