diff --git a/folly/synchronization/test/DistributedMutexTest.cpp b/folly/synchronization/test/DistributedMutexTest.cpp
index f8cd38139d1cac9e4665cdc67d7ee4cae04a4a68..5e82488e0a01d9b93d58cbe4cb11e9c71228492d 100644
--- a/folly/synchronization/test/DistributedMutexTest.cpp
+++ b/folly/synchronization/test/DistributedMutexTest.cpp
@@ -1795,7 +1795,9 @@ void concurrentExceptionPropagationStress(
     std::chrono::milliseconds t) {
   // this test passes normally and under recent or Clang TSAN, but inexplicably
   // TSAN-aborts under some older non-Clang TSAN versions
-  SKIP_IF(folly::kIsSanitizeThread && !folly::kIsClang);
+  if (folly::kIsSanitizeThread && !folly::kIsClang) {
+    return;
+  }
 
   TestConstruction::reset();
   auto&& mutex = detail::distributed_mutex::DistributedMutex<Atom>{};