aboutsummaryrefslogtreecommitdiff
path: root/src/test/util/index.cpp
diff options
context:
space:
mode:
authorRyan Ofsky <ryan@ofsky.org>2023-07-07 17:32:54 -0400
committerRyan Ofsky <ryan@ofsky.org>2023-12-04 15:39:15 -0400
commitba93966368d3aaa426b97837ef475ec5aa612f5f (patch)
tree8d7c4795860a7b2cff07c8b318ead1be8e1b79cd /src/test/util/index.cpp
parent42e5829d9710ebebda5de356fab01dd7c149d5fa (diff)
refactor: Remove call to ShutdownRequested from IndexWaitSynced
Use the node interrupt object instead. There is no change in behavior in this commit.
Diffstat (limited to 'src/test/util/index.cpp')
-rw-r--r--src/test/util/index.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/util/index.cpp b/src/test/util/index.cpp
index e653d5dbf0..cfeba35756 100644
--- a/src/test/util/index.cpp
+++ b/src/test/util/index.cpp
@@ -5,16 +5,16 @@
#include <test/util/index.h>
#include <index/base.h>
-#include <shutdown.h>
#include <util/check.h>
+#include <util/signalinterrupt.h>
#include <util/time.h>
-void IndexWaitSynced(const BaseIndex& index)
+void IndexWaitSynced(const BaseIndex& index, const util::SignalInterrupt& interrupt)
{
while (!index.BlockUntilSyncedToCurrentChain()) {
// Assert shutdown was not requested to abort the test, instead of looping forever, in case
// there was an unexpected error in the index that caused it to stop syncing and request a shutdown.
- Assert(!ShutdownRequested());
+ Assert(!interrupt);
UninterruptibleSleep(100ms);
}