Skip to content

Commit

Permalink
Merge pull request #4642 from Lezek123/storage-sync-timeout
Browse files Browse the repository at this point in the history
Increase storageSync QN timeout even more (5m)
  • Loading branch information
mnaamani authored Feb 20, 2023
2 parents 1c7d959 + 41bb22b commit dbdec2d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/network-tests/src/flows/storage/storageSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,13 @@ export async function storageSync({ api, query }: FlowProps): Promise<void> {
await api.sendExtrinsicsAndGetResults(createChannelTxBatch, memberAddr)
}

debug('Giving the query node 2 minutes to sync...')
await Utils.wait(120_000)

debug('Waiting until the query node processes 10_000 channels...')
// Make sure there are indeed 10_000 channels processed by the QN
await query.tryQueryWithTimeout(
() => query.getChannelsCount(),
(r) => assert.equal(r, 10_000),
12,
10
10_000,
30 // 10s * 30 = 300s = 5 minutes timeout
)

// Create channel w/ some data objects
Expand Down

0 comments on commit dbdec2d

Please sign in to comment.