From e32b017027c051b23fc62c79c304f6fc61b39b01 Mon Sep 17 00:00:00 2001 From: Dewey Dunnington Date: Thu, 21 Sep 2023 09:53:36 +0200 Subject: [PATCH] increase test timeout value --- CMakeLists.txt | 15 +++++++++------ CMakeUserPresets.json.example | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5691f3a90..9310bad5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,10 +230,13 @@ if(NANOARROW_BUILD_TESTS) target_link_libraries(nanoarrow_hpp_test nanoarrow gtest_main coverage_config) include(GoogleTest) - gtest_discover_tests(utils_test) - gtest_discover_tests(buffer_test) - gtest_discover_tests(array_test) - gtest_discover_tests(schema_test) - gtest_discover_tests(array_stream_test) - gtest_discover_tests(nanoarrow_hpp_test) + # Some users have reported a timeout with the default value of 5 + # Building with -DBUILD_SHARED_LIBS=ON may also help reduce the size of test + # executables. + gtest_discover_tests(utils_test DISCOVERY_TIMEOUT 10) + gtest_discover_tests(buffer_test DISCOVERY_TIMEOUT 10) + gtest_discover_tests(array_test DISCOVERY_TIMEOUT 10) + gtest_discover_tests(schema_test DISCOVERY_TIMEOUT 10) + gtest_discover_tests(array_stream_test DISCOVERY_TIMEOUT 10) + gtest_discover_tests(nanoarrow_hpp_test DISCOVERY_TIMEOUT 10) endif() diff --git a/CMakeUserPresets.json.example b/CMakeUserPresets.json.example index 10900141e..796ff2cc4 100644 --- a/CMakeUserPresets.json.example +++ b/CMakeUserPresets.json.example @@ -19,7 +19,7 @@ { "name": "user-test-preset", "description": "", - "displayName": "(user) test preset)", + "displayName": "(user) test preset", "configurePreset": "user-local", "environment": { "CTEST_OUTPUT_ON_FAILURE": "1"