From 02ee0a54ea524d52edb9aeb96e687e9ce6c16091 Mon Sep 17 00:00:00 2001 From: Michal Fousek Date: Fri, 28 Oct 2022 12:18:19 +0200 Subject: [PATCH] [#593] Fix testSmallDownloadAsync test - Test was failling with: generalError(message: "block not found in cache, should always be in cache in darkside mode") - There was no wait so lightwalletd in darkside mode didn't have enough time to accept mocked state. --- Tests/DarksideTests/BlockDownloaderTests.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/DarksideTests/BlockDownloaderTests.swift b/Tests/DarksideTests/BlockDownloaderTests.swift index b78ed5e1..ceb1fafd 100644 --- a/Tests/DarksideTests/BlockDownloaderTests.swift +++ b/Tests/DarksideTests/BlockDownloaderTests.swift @@ -31,6 +31,8 @@ class BlockDownloaderTests: XCTestCase { try FakeChainBuilder.buildChain(darksideWallet: darksideWalletService, branchID: branchID, chainName: chainName) try darksideWalletService.applyStaged(nextLatestHeight: 663250) + + sleep(2) } override func tearDown() {