summaryrefslogtreecommitdiff
path: root/src/mongo/platform
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/platform')
-rw-r--r--src/mongo/platform/mutex_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/platform/mutex_test.cpp b/src/mongo/platform/mutex_test.cpp
index 731a3f4e2a3..739734c0e46 100644
--- a/src/mongo/platform/mutex_test.cpp
+++ b/src/mongo/platform/mutex_test.cpp
@@ -59,7 +59,7 @@ TEST(MutexTest, Macros) {
} holder;
static_assert(std::is_same_v<decltype(MutexHolder::m2), Mutex>);
ASSERT_NE(holder.m2.getName().find("MutexHolder"_sd), std::string::npos);
- ASSERT_NE(holder.m2.getName().find("m2"_sd), std::string::npos);
+ ASSERT_EQ(holder.m2.getName().find("m2"_sd), std::string::npos) << holder.m2.getName();
// Verify the global named latch
static_assert(std::is_same_v<decltype(gMutex), Mutex>);