]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/bloom_filter: disable sequential tests
authorSage Weil <sage@inktank.com>
Wed, 25 Sep 2013 21:20:21 +0000 (14:20 -0700)
committerSage Weil <sage@inktank.com>
Thu, 3 Oct 2013 16:21:54 +0000 (09:21 -0700)
These are slow and are not useful.

Signed-off-by: Sage Weil <sage@inktank.com>
src/test/common/test_bloom_filter.cc

index 5df2c15eb071dacf2c02eb69b5a3326169b1e877..d074407a85150d1b2d6e3c652938647a9a67dc6c 100644 (file)
@@ -99,6 +99,12 @@ TEST(BloomFilter, SweepInt) {
   }
 }
 
+
+// disable these tests; doing dual insertions in consecutive filters
+// appears to be equivalent to doing a single insertion in a bloom
+// filter that is twice as big.
+#if 0
+
 // test the fpp over a sequence of bloom filters, each with unique
 // items inserted into it.
 //
@@ -176,3 +182,5 @@ TEST(BloomFilter, SequenceDouble) {
              << " expected " << (fpp*fpp*(double)seq) << std::endl;
   }
 }
+
+#endif