From 89f319c2dfc7c1c40b45d0ba916cdd75b19f307e Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Thu, 21 Jul 2016 14:32:12 -0700 Subject: [PATCH] Fix unit test which breaks lite build Summary: Comment out assertion of number of table files from lite build. Test Plan: OPT=-DROCKSDB_LITE make check Reviewers: lightmark Reviewed By: lightmark Subscribers: andrewkr, dhruba, leveldb Differential Revision: https://reviews.facebook.net/D60999 --- db/db_flush_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/db_flush_test.cc b/db/db_flush_test.cc index 71062143b..ab4b1ab4c 100644 --- a/db/db_flush_test.cc +++ b/db/db_flush_test.cc @@ -42,8 +42,9 @@ TEST_F(DBFlushTest, FlushWhileWritingManifest) { ASSERT_OK(dbfull()->Flush(no_wait)); // If the issue is hit we will wait here forever. dbfull()->TEST_WaitForFlushMemTable(); - +#ifndef ROCKSDB_LITE ASSERT_EQ(2, TotalTableFiles()); +#endif // ROCKSDB_LITE } } // namespace rocksdb