Skip to content

Commit fabed7e

Browse files
author
MarcoFalke
committed
test: Restore unlimited timeout in IndexWaitSynced
The timeout was unlimited before, so just restore that value for now: bitcoin/bitcoin#27988 (comment)
1 parent bc4f6b1 commit fabed7e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/test/util/index.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
#include <test/util/index.h>
66

77
#include <index/base.h>
8-
#include <util/check.h>
98
#include <util/time.h>
109

11-
void IndexWaitSynced(BaseIndex& index)
10+
void IndexWaitSynced(const BaseIndex& index)
1211
{
13-
const auto timeout{SteadyClock::now() + 120s};
1412
while (!index.BlockUntilSyncedToCurrentChain()) {
15-
Assert(timeout > SteadyClock::now());
1613
UninterruptibleSleep(100ms);
1714
}
1815
}

src/test/util/index.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
class BaseIndex;
99

1010
/** Block until the index is synced to the current chain */
11-
void IndexWaitSynced(BaseIndex& index);
11+
void IndexWaitSynced(const BaseIndex& index);
1212

1313
#endif // BITCOIN_TEST_UTIL_INDEX_H

0 commit comments

Comments
 (0)