Commit 96632831 authored by Matthew Cary's avatar Matthew Cary Committed by Commit Bot

Android: Add assert in EarlyTraceEventTest#testCanRecordEventUsingTryWith.

This test has been flaky. The additional assert may shed some light onto
what's going on.

TBR: yfriedman@chromium.org
Bug: 930174
Change-Id: Ifdc99b3c49f7d827818ca7ff8dbea12b856d2101
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1546107Reviewed-by: default avatarMatthew Cary <mattcary@chromium.org>
Reviewed-by: default avatarYaron Friedman <yfriedman@chromium.org>
Commit-Queue: Matthew Cary <mattcary@chromium.org>
Cr-Commit-Position: refs/heads/master@{#646293}
parent d7dba87d
......@@ -105,6 +105,7 @@ public class EarlyTraceEventTest {
EarlyTraceEvent.enable();
long myThreadId = Process.myTid();
long beforeNanos = Event.elapsedRealtimeNanos();
Assert.assertTrue(EarlyTraceEvent.sPendingEventByKey.isEmpty());
try (TraceEvent e = TraceEvent.scoped(EVENT_NAME)) {
// Required comment to pass presubmit checks.
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment