From 025b85b4ac078110302c039556e4c12ba8e7a731 Mon Sep 17 00:00:00 2001 From: Andrew Kryczka Date: Tue, 12 Sep 2017 11:16:24 -0700 Subject: [PATCH] speedup DBTest.EncodeDecompressedBlockSizeTest Summary: it sometimes takes more than 10 minutes (i.e., times out) on our internal CI. mainly because bzip is super slow. so I reduced the amount of work it tries to do. Closes https://github.com/facebook/rocksdb/pull/2856 Differential Revision: D5795883 Pulled By: ajkr fbshipit-source-id: e69f986ae60b44ecc26b6b024abd0f13bdf3a3c5 --- db/db_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_test.cc b/db/db_test.cc index 5ef5e8833..766a4c2c6 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -4503,7 +4503,7 @@ TEST_F(DBTest, EncodeDecompressedBlockSizeTest) { options.compression = comp; DestroyAndReopen(options); - int kNumKeysWritten = 100000; + int kNumKeysWritten = 1000; Random rnd(301); for (int i = 0; i < kNumKeysWritten; ++i) {