diff --git a/absl/base/exception_safety_testing_test.cc b/absl/base/exception_safety_testing_test.cc
index c1b5df265467fcd9c1cb500d9a208b30b5c994d8..4931c8865af5c826eedec126e68614db9f85a5f4 100644
--- a/absl/base/exception_safety_testing_test.cc
+++ b/absl/base/exception_safety_testing_test.cc
@@ -392,7 +392,7 @@ struct FailsBasicGuarantee {
   }
 
   bool operator==(const FailsBasicGuarantee& other) const {
-    return i != other.i;
+    return i == other.i;
   }
 
   friend testing::AssertionResult AbslCheckInvariants(