diff options
author | Alon Albert <aalbert@google.com> | 2022-07-28 07:27:30 -0700 |
---|---|---|
committer | TreeHugger Robot <treehugger-gerrit@google.com> | 2022-07-28 21:28:47 +0000 |
commit | d3090fdb7dbdd94af0f67bf1bcb65892db723d6c (patch) | |
tree | f46d49671e2d67f11949648960dbb51b77733eeb /logcat | |
parent | 4564852e3711288952fcc4c5d6ce24d02156862a (diff) | |
download | idea-d3090fdb7dbdd94af0f67bf1bcb65892db723d6c.tar.gz |
Fix Flaky Test
Waiting for the condition instead of asserting it should fix the problem.
Fixes: 240310444
Test: Self
Change-Id: I8703dbce7470269bddbac87a11943a3f35444203
Diffstat (limited to 'logcat')
-rw-r--r-- | logcat/testSrc/com/android/tools/idea/logcat/LogcatMainPanelTest.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/logcat/testSrc/com/android/tools/idea/logcat/LogcatMainPanelTest.kt b/logcat/testSrc/com/android/tools/idea/logcat/LogcatMainPanelTest.kt index c17c0662507..672f6399015 100644 --- a/logcat/testSrc/com/android/tools/idea/logcat/LogcatMainPanelTest.kt +++ b/logcat/testSrc/com/android/tools/idea/logcat/LogcatMainPanelTest.kt @@ -608,7 +608,7 @@ class LogcatMainPanelTest { logcatService.logMessages(message1) - assertThat(logcatMainPanel.logcatServiceJob).isNotNull() + waitForCondition { logcatMainPanel.logcatServiceJob != null } waitForCondition { logcatMainPanel.messageBacklog.get().messages.isNotEmpty() } logcatMainPanel.messageProcessor.onIdle { assertThat(logcatMainPanel.editor.document.text).isEqualTo(""" |