]> git-server-git.apps.pok.os.sepia.ceph.com Git - googletest.git/commitdiff
fix unit test failure on NoShortCircuitOnFailure and DetectsFlakyShortCircuit when...
authorMuhammad Hilman Beyri <hilmanbeyri@gmail.com>
Sun, 12 Jan 2020 21:53:09 +0000 (16:53 -0500)
committerMuhammad Hilman Beyri <hilmanbeyri@gmail.com>
Sun, 12 Jan 2020 21:53:09 +0000 (16:53 -0500)
googlemock/test/gmock-matchers_test.cc

index e6e8c8f402118c4b115a81a7304c7c8a42439e46..98b814ba88c5ef6a1001f556db1bd43e58448b09 100644 (file)
@@ -6885,7 +6885,7 @@ TEST_F(PredicateFormatterFromMatcherTest, NoShortCircuitOnFailure) {
   EXPECT_FALSE(result);  // Implicit cast to bool.
   std::string expect =
       "Value of: dummy-name\nExpected: [DescribeTo]\n"
-      "  Actual: 1, [MatchAndExplain]";
+      "  Actual: 1" + OfType(internal::GetTypeName<Behavior>()) + ", [MatchAndExplain]";
   EXPECT_EQ(expect, result.message());
 }
 
@@ -6896,7 +6896,7 @@ TEST_F(PredicateFormatterFromMatcherTest, DetectsFlakyShortCircuit) {
       "Value of: dummy-name\nExpected: [DescribeTo]\n"
       "  The matcher failed on the initial attempt; but passed when rerun to "
       "generate the explanation.\n"
-      "  Actual: 2, [MatchAndExplain]";
+      "  Actual: 2" + OfType(internal::GetTypeName<Behavior>()) + ", [MatchAndExplain]";
   EXPECT_EQ(expect, result.message());
 }