From fa086248e57b89cc549a090f727c0978082727c0 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Wed, 28 Jun 2023 12:20:05 +0200 Subject: [PATCH] test: Use same timeout for all index sync --- src/Makefile.test_util.include | 2 ++ src/test/blockfilter_index_tests.cpp | 9 ++------- src/test/coinstatsindex_tests.cpp | 15 +-------------- src/test/txindex_tests.cpp | 9 ++------- src/test/util/index.cpp | 18 ++++++++++++++++++ src/test/util/index.h | 13 +++++++++++++ 6 files changed, 38 insertions(+), 28 deletions(-) create mode 100644 src/test/util/index.cpp create mode 100644 src/test/util/index.h diff --git a/src/Makefile.test_util.include b/src/Makefile.test_util.include index 11b93ad13e6..33c299f34cb 100644 --- a/src/Makefile.test_util.include +++ b/src/Makefile.test_util.include @@ -11,6 +11,7 @@ TEST_UTIL_H = \ test/util/blockfilter.h \ test/util/chainstate.h \ test/util/coins.h \ + test/util/index.h \ test/util/json.h \ test/util/logging.h \ test/util/mining.h \ @@ -34,6 +35,7 @@ libtest_util_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) libtest_util_a_SOURCES = \ test/util/blockfilter.cpp \ test/util/coins.cpp \ + test/util/index.cpp \ test/util/json.cpp \ test/util/logging.cpp \ test/util/mining.cpp \ diff --git a/src/test/blockfilter_index_tests.cpp b/src/test/blockfilter_index_tests.cpp index 1ff5d6cf591..24af51cce13 100644 --- a/src/test/blockfilter_index_tests.cpp +++ b/src/test/blockfilter_index_tests.cpp @@ -12,8 +12,8 @@ #include #include