Skip to content

Commit e10e587

Browse files
authored
=test harden test_gossip_shouldEventuallyStopSpreading which was too aggressive (#771)
1 parent aa5872c commit e10e587

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/DistributedActorsTests/CRDT/CRDTGossipReplicationClusteredTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ final class CRDTGossipReplicationClusteredTests: ClusteredActorSystemsXCTestCase
220220

221221
func test_gossip_shouldEventuallyStopSpreading() throws {
222222
let configure: (inout ActorSystemSettings) -> Void = { settings in
223-
settings.crdt.gossipInterval = .milliseconds(300)
223+
settings.crdt.gossipInterval = .milliseconds(200)
224224
settings.crdt.gossipIntervalRandomFactor = 0 // no random factor, exactly 1second intervals
225225
}
226226
let first = self.setUpNode("first", configure)
@@ -259,7 +259,7 @@ final class CRDTGossipReplicationClusteredTests: ClusteredActorSystemsXCTestCase
259259
let logs: [CapturedLogMessage] = self.capturedLogs(of: first)
260260
.grep("Received gossip", metadata: ["gossip/identity": "counter"])
261261

262-
guard logs.count < 5 else {
262+
guard logs.count < 10 else {
263263
throw testKit.error("Received gossip more times than expected! Logs: \(lineByLine: logs)")
264264
}
265265
}

0 commit comments

Comments
 (0)