Skip to content

Commit 82ea841

Browse files
scheglovcommit-bot@chromium.org
authored andcommitted
Fix failing test/completion_test.dart
Change-Id: I12676b8d1422d9d521f8c1ac84a28b30237b1ee6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196242 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 4690950 commit 82ea841

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/analysis_server/test/completion_test.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,9 +2443,10 @@ class A<Z extends X> {
24432443
++expectedFailCount;
24442444
test('$testName (expected failure $expectedFailCount)', () {
24452445
var test = CompletionTestCase();
2446-
return Future(() => test.runTest(spec, extraFiles)).then((_) {
2447-
fail('Test passed - expected to fail.');
2448-
}, onError: (_) {});
2446+
expect(
2447+
() => test.runTest(spec, extraFiles),
2448+
throwsA(anything),
2449+
);
24492450
});
24502451
} else {
24512452
++expectedPassCount;

0 commit comments

Comments
 (0)