Skip to content

Commit fd60bca

Browse files
committed
bigger timeout on init electrum
1 parent 4be7740 commit fd60bca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/helpers/electrum.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const peer = {
1212
ssl: 60002,
1313
};
1414

15-
const TIMEOUT = 30 * 1000; // 30 seconds
15+
const TIMEOUT = 120 * 1000; // 120 seconds
1616

1717
function sleep(ms: number): Promise<void> {
1818
return new Promise((resolve) => setTimeout(resolve, ms));
@@ -77,7 +77,7 @@ const initElectrum = async (): Promise<ElectrumClient> => {
7777
}
7878

7979
if (Date.now() - startTime > TIMEOUT) {
80-
throw new Error('Electrum sync timeout');
80+
throw new Error('Electrum sync timeout exceeded 120 seconds');
8181
}
8282

8383
await sleep(1000);

0 commit comments

Comments
 (0)