Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Unified Diff: ppapi/tests/test_post_message.cc

Issue 299893002: Fix PPAPINaClNewlibTest.PostMessage flakiness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_post_message.cc
diff --git a/ppapi/tests/test_post_message.cc b/ppapi/tests/test_post_message.cc
index f51cf4e958175393ed29c213d38ed8f17ebfc037..5413b54f00b759f5fe9ed7889bcd80cffa0c6807 100644
--- a/ppapi/tests/test_post_message.cc
+++ b/ppapi/tests/test_post_message.cc
@@ -311,7 +311,8 @@ std::string TestPostMessage::CheckMessageProperties(
}
std::string TestPostMessage::TestSendInInit() {
- ASSERT_EQ(1, WaitForMessages());
+ // Wait for the messages from Init() to be guaranteed to be sent.
+ WaitForMessages();
// This test assumes Init already sent a message.
ASSERT_EQ(1, message_data_.size());
ASSERT_TRUE(message_data_.back().is_string());
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698