From 99908db998283c9b9bfb07eb7e907d585fe73c35 Mon Sep 17 00:00:00 2001 From: Jay Zhuang Date: Mon, 14 Jun 2021 16:30:36 -0700 Subject: [PATCH] Increase cmake test DISCOVERY_TIMEOUT from 5 to 120 seconds (#8403) Summary: cmake test discovery may timeout especially on Windows platform. Increase it from default 5 seconds to 120 seconds. Pull Request resolved: https://github.com/facebook/rocksdb/pull/8403 Test Plan: Run Windows build 10 times without issue Reviewed By: akankshamahajan15 Differential Revision: D29117455 Pulled By: jay-zhuang fbshipit-source-id: 74f71833432f016776a59e070b0f4e146968f81b --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index db802edb3..a5ced51fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1339,7 +1339,7 @@ if(WITH_TESTS) ) target_link_libraries(${exename}${ARTIFACT_SUFFIX} testutillib${ARTIFACT_SUFFIX} testharness gtest ${THIRDPARTY_LIBS} ${ROCKSDB_LIB}) if(NOT "${exename}" MATCHES "db_sanity_test") - gtest_discover_tests(${exename}) + gtest_discover_tests(${exename} DISCOVERY_TIMEOUT 120) add_dependencies(check ${exename}${ARTIFACT_SUFFIX}) endif() if("${exename}" MATCHES "env_librados_test")