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
This commit is contained in:
Lorenzo Colitti
2022-03-17 22:16:06 +09:00
parent 1b7b191bdf
commit 4b5ceb7d2a

View File

@@ -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);