Index: runtime/observatory/tests/service/command_test.dart |
diff --git a/runtime/observatory/tests/service/command_test.dart b/runtime/observatory/tests/service/command_test.dart |
index 8792d872731009e16066741b0dec1ba73ffbc957..90f9d6730e9e8cd8e910fc6bf210c7bcff30881f 100644 |
--- a/runtime/observatory/tests/service/command_test.dart |
+++ b/runtime/observatory/tests/service/command_test.dart |
@@ -185,7 +185,7 @@ void testCommandRunNotFound() { |
RootCommand cmd = new RootCommand([new TestCommand(out, 'alpha', [])]); |
cmd.runCommand('goose').catchError(expectAsync((e) { |
- expect(e, equals('No such command')); |
+ expect(e.toString(), equals("No such command: 'goose'")); |
})); |
} |
@@ -196,7 +196,8 @@ void testCommandRunAmbiguous() { |
new TestCommand(out, 'ankle', [])]); |
cmd.runCommand('a 55').catchError(expectAsync((e) { |
- expect(e, equals('Ambiguous command')); |
+ expect(e.toString(), |
+ equals("Command 'a 55' is ambiguous: [alpha, ankle]")); |
out.clear(); |
cmd.runCommand('ankl 55').then(expectAsync((_) { |
expect(out.toString(), equals('executing ankle([55])\n')); |