From 4b5ceb7d2aafe643dc5b269872d1182aa3f97f60 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Thu, 17 Mar 2022 22:16:06 +0900 Subject: [PATCH] Make testMultipleMessagesDispatched slightly less overspecified. LooperStatsTest#testMultipleMessagesDispatched seems to fail all the time in presubmit due to the test expecting ExternalSyntheticLambda5 instead of ExternalSyntheticLambda4. The test will still fail if lambda naming conventions change, but at least it will be slightly more robust. Test: treehugger Change-Id: Ibdd866a29ab7335c7f9149702de3735c94036111 --- .../coretests/src/com/android/internal/os/LooperStatsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tests/coretests/src/com/android/internal/os/LooperStatsTest.java b/core/tests/coretests/src/com/android/internal/os/LooperStatsTest.java index ec45a016507a7..625f52a87ecfc 100644 --- a/core/tests/coretests/src/com/android/internal/os/LooperStatsTest.java +++ b/core/tests/coretests/src/com/android/internal/os/LooperStatsTest.java @@ -232,7 +232,7 @@ public final class LooperStatsTest { assertThat(entry3.handlerClassName).isEqualTo( "com.android.internal.os.LooperStatsTest$TestHandlerSecond"); assertThat(entry3.messageName).startsWith( - "com.android.internal.os.LooperStatsTest$$ExternalSyntheticLambda5"); + "com.android.internal.os.LooperStatsTest$$ExternalSyntheticLambda"); assertThat(entry3.messageCount).isEqualTo(1); assertThat(entry3.recordedMessageCount).isEqualTo(1); assertThat(entry3.exceptionCount).isEqualTo(0);