test: Use BasicTestingSetup when TestingSetup is not necessary

This commit is contained in:
Hodlinator
2026-03-24 09:59:29 +01:00
parent 9ee77701dd
commit 2af003ae37
6 changed files with 9 additions and 9 deletions

View File

@@ -21,16 +21,16 @@
#include <vector>
/**
* Identical to TestingSetup but excludes lock contention logging if
* Identical to BasicTestingSetup but excludes lock contention logging if
* `DEBUG_LOCKCONTENTION` is defined, as some of these tests are designed to be
* heavily contested to trigger race conditions or other issues.
*/
struct NoLockLoggingTestingSetup : public TestingSetup {
struct NoLockLoggingTestingSetup : public BasicTestingSetup {
NoLockLoggingTestingSetup()
#ifdef DEBUG_LOCKCONTENTION
: TestingSetup{ChainType::MAIN, {.extra_args = { "-debugexclude=lock" } }} {}
: BasicTestingSetup{ChainType::MAIN, {.extra_args = { "-debugexclude=lock" } }} {}
#else
: TestingSetup{ChainType::MAIN} {}
: BasicTestingSetup{ChainType::MAIN} {}
#endif
};