Update two more tests annotated with issue 51275.

Change-Id: Ia7c0468255b05d79f42cd48e6e455e67f09b7c43
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/290601
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
diff --git a/pkg/analyzer/test/src/diagnostics/non_exhaustive_switch_test.dart b/pkg/analyzer/test/src/diagnostics/non_exhaustive_switch_test.dart
index a99ae2b..4d84d1c 100644
--- a/pkg/analyzer/test/src/diagnostics/non_exhaustive_switch_test.dart
+++ b/pkg/analyzer/test/src/diagnostics/non_exhaustive_switch_test.dart
@@ -384,7 +384,7 @@
   }
 
   /// TODO(scheglov) Fix it.
-  @FailingTest(issue: 'https://github.com/dart-lang/sdk/issues/51275')
+  @FailingTest(issue: 'https://github.com/dart-lang/sdk/issues/51819')
   test_alwaysExhaustive_typeVariable_promoted_bool_true_false() async {
     await assertNoErrorsInCode(r'''
 void f<T>(T x) {
diff --git a/pkg/analyzer/test/src/diagnostics/unreachable_switch_case_test.dart b/pkg/analyzer/test/src/diagnostics/unreachable_switch_case_test.dart
index bcd729a..a4ad4c2 100644
--- a/pkg/analyzer/test/src/diagnostics/unreachable_switch_case_test.dart
+++ b/pkg/analyzer/test/src/diagnostics/unreachable_switch_case_test.dart
@@ -31,8 +31,6 @@
     ]);
   }
 
-  /// TODO(scheglov) Fix it.
-  @FailingTest(issue: 'https://github.com/dart-lang/sdk/issues/51275')
   test_bool_wildcard_true_false() async {
     await assertErrorsInCode(r'''
 Object f(bool x) {
@@ -43,7 +41,9 @@
   };
 }
 ''', [
+      error(WarningCode.DEAD_CODE, 57, 9),
       error(HintCode.UNREACHABLE_SWITCH_CASE, 62, 2),
+      error(WarningCode.DEAD_CODE, 72, 10),
       error(HintCode.UNREACHABLE_SWITCH_CASE, 78, 2),
     ]);
   }