From 92d77ea26bf411c81ea435a8edd96da2e78f897e Mon Sep 17 00:00:00 2001 From: songferngwang Date: Tue, 21 May 2024 03:53:02 +0000 Subject: [PATCH] Fix UiccSlotUtilTest's test case The onReceiveSimCardStateChangeReceiver_receiveAction_timerCountDown is failed since the action is wrong. Bug: 337417975 Test: atest UiccSlotUtilTest (pass) Change-Id: I0cb12432553155d69f985693e4ef911455c81652 --- .../src/com/android/settings/network/UiccSlotUtilTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/unit/src/com/android/settings/network/UiccSlotUtilTest.java b/tests/unit/src/com/android/settings/network/UiccSlotUtilTest.java index 1a895b3d0fd..2aa15733e45 100644 --- a/tests/unit/src/com/android/settings/network/UiccSlotUtilTest.java +++ b/tests/unit/src/com/android/settings/network/UiccSlotUtilTest.java @@ -41,7 +41,6 @@ import androidx.test.ext.junit.runners.AndroidJUnit4; import com.google.common.collect.ImmutableList; import org.junit.Before; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; @@ -754,12 +753,11 @@ public class UiccSlotUtilTest { } @Test - @Ignore("b/337417975") public void onReceiveSimCardStateChangeReceiver_receiveAction_timerCountDown() { CountDownLatch latch = spy(new CountDownLatch(1)); UiccSlotUtil.SimCardStateChangeReceiver receive = new UiccSlotUtil.SimCardStateChangeReceiver(latch); - Intent intent = new Intent(TelephonyManager.ACTION_SIM_SLOT_STATUS_CHANGED); + Intent intent = new Intent(TelephonyManager.ACTION_SIM_CARD_STATE_CHANGED); intent.putExtra(TelephonyManager.EXTRA_SIM_STATE, TelephonyManager.SIM_STATE_PRESENT); receive.onReceive(mContext, intent);