]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests/ceph_timer: Fix link error that keeps showing up 61746/head
authorAdam Emerson <aemerson@redhat.com>
Mon, 10 Feb 2025 21:01:38 +0000 (16:01 -0500)
committerAdam Emerson <aemerson@redhat.com>
Mon, 10 Feb 2025 21:01:38 +0000 (16:01 -0500)
We keep hitting link errors from GTest trying to print the values and
iostreams for `<chrono>` being flaky.

Just make it a straight up `EXPECT_TRUE` so it stops breaking
differently on different platforms.

Signed-off-by: Adam Emerson <aemerson@redhat.com>
src/test/common/test_ceph_timer.cc

index 925f05bd1f9f071dfaa0e15a164dcf569b47c6cc..971940293c74cb716230d41ae515d68b93fec543 100644 (file)
@@ -66,7 +66,7 @@ void run_orderly()
                         });
   }
 
-  EXPECT_LT(first.get(), second.get());
+  EXPECT_TRUE(first.get() < second.get());
 }
 
 struct Destructo {