Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
MacOMNI committed Jan 10, 2025
1 parent 115d38c commit 0f9136d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Node/Tests/NodeTests/NodeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ final class NodeTests {
#expect(node1.network.peersCount == 19)
#expect(node2.network.peersCount == 19)
// Advance time to produce blocks
for _ in 0..<50 {
for _ in 0..<10 {
await scheduler.advance(
by: TimeInterval(validator1.blockchain.config.value.slotPeriodSeconds))
await validator1StoreMiddlware.wait()
Expand All @@ -227,7 +227,7 @@ final class NodeTests {
await middleware.wait()
}
}

try await Task.sleep(for: .milliseconds(nodes.count * 200))
let validator1BestHead = await validator1.dataProvider.bestHead
let validator2BestHead = await validator2.dataProvider.bestHead

Expand Down

0 comments on commit 0f9136d

Please sign in to comment.