You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2013/04/12 19:38:15 UTC

svn commit: r1467369 - /incubator/mesos/trunk/src/tests/log_tests.cpp

Author: benh
Date: Fri Apr 12 17:38:14 2013
New Revision: 1467369

URL: http://svn.apache.org/r1467369
Log:
Updated log tests to use DROP_MESSAGES.

Review: https://reviews.apache.org/r/10304

Modified:
    incubator/mesos/trunk/src/tests/log_tests.cpp

Modified: incubator/mesos/trunk/src/tests/log_tests.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/tests/log_tests.cpp?rev=1467369&r1=1467368&r2=1467369&view=diff
==============================================================================
--- incubator/mesos/trunk/src/tests/log_tests.cpp (original)
+++ incubator/mesos/trunk/src/tests/log_tests.cpp Fri Apr 12 17:38:14 2013
@@ -693,8 +693,7 @@ TEST(CoordinatorTest, Fill)
 
 TEST(CoordinatorTest, NotLearnedFill)
 {
-  EXPECT_MESSAGE(Eq(LearnedMessage().GetTypeName()), _, _)
-    .WillRepeatedly(Return(true));
+  DROP_MESSAGES(Eq(LearnedMessage().GetTypeName()), _, _);
 
   const std::string path1 = os::getcwd() + "/.log1";
   const std::string path2 = os::getcwd() + "/.log2";
@@ -814,8 +813,7 @@ TEST(CoordinatorTest, MultipleAppends)
 
 TEST(CoordinatorTest, MultipleAppendsNotLearnedFill)
 {
-  EXPECT_MESSAGE(Eq(LearnedMessage().GetTypeName()), _, _)
-    .WillRepeatedly(Return(true));
+  DROP_MESSAGES(Eq(LearnedMessage().GetTypeName()), _, _);
 
   const std::string path1 = os::getcwd() + "/.log1";
   const std::string path2 = os::getcwd() + "/.log2";
@@ -946,8 +944,7 @@ TEST(CoordinatorTest, Truncate)
 
 TEST(CoordinatorTest, TruncateNotLearnedFill)
 {
-  EXPECT_MESSAGE(Eq(LearnedMessage().GetTypeName()), _, _)
-    .WillRepeatedly(Return(true));
+  DROP_MESSAGES(Eq(LearnedMessage().GetTypeName()), _, _);
 
   const std::string path1 = os::getcwd() + "/.log1";
   const std::string path2 = os::getcwd() + "/.log2";