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:
@@ -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$$ExternalSyntheticLambda4");
|
||||
"com.android.internal.os.LooperStatsTest$$ExternalSyntheticLambda");
|
||||
assertThat(entry3.messageCount).isEqualTo(1);
|
||||
assertThat(entry3.recordedMessageCount).isEqualTo(1);
|
||||
assertThat(entry3.exceptionCount).isEqualTo(0);
|
||||
|
||||
Reference in New Issue
Block a user