@@ -96,7 +96,7 @@ class ReplicatedEntitySnapshotMultiNodeSpec
9696 awaitAssert {
9797 // update state
9898 entityRef ! DummyEntity .Increment (transactionSeq1, amount = 1 , replyTo.ref)
99- replyTo.receiveMessage(1 .seconds ).count should be(1 )
99+ replyTo.receiveMessage(500 .millis ).count should be(1 )
100100 }
101101 }
102102 enterBarrier(" sent a command" )
@@ -106,7 +106,7 @@ class ReplicatedEntitySnapshotMultiNodeSpec
106106 awaitAssert {
107107 actorRef = findEntityActorRef()
108108 actorRef ! DummyEntity .GetState (replyTo.ref)
109- replyTo.receiveMessage(1 .seconds ).count should be(1 )
109+ replyTo.receiveMessage(500 .millis ).count should be(1 )
110110 }
111111 }
112112 enterBarrier(" all entities applied an event" )
@@ -120,7 +120,7 @@ class ReplicatedEntitySnapshotMultiNodeSpec
120120 var latestCount = 1
121121 awaitAssert {
122122 entityRef ! DummyEntity .Increment (transactionSeq, amount = 1 , replyTo.ref)
123- val reply = replyTo.receiveMessage(1 .seconds )
123+ val reply = replyTo.receiveMessage(500 .millis )
124124 reply.count should be > latestCount
125125 latestCount = reply.count
126126 }
@@ -132,14 +132,14 @@ class ReplicatedEntitySnapshotMultiNodeSpec
132132 // entity which has not been isolated applied all events
133133 awaitAssert {
134134 actorRef ! DummyEntity .GetState (replyTo.ref)
135- replyTo.receiveMessage(1 .seconds ).count should be(5 )
135+ replyTo.receiveMessage(500 .millis ).count should be(5 )
136136 }
137137 }
138138 runOn(node3) {
139139 // entity which has been isolated did not apply any events
140140 awaitAssert {
141141 actorRef ! DummyEntity .GetState (replyTo.ref)
142- replyTo.receiveMessage(1 .seconds ).count should be(1 )
142+ replyTo.receiveMessage(500 .millis ).count should be(1 )
143143 }
144144 }
145145 enterBarrier(" entity which has not been isolated applied all events" )
@@ -151,11 +151,11 @@ class ReplicatedEntitySnapshotMultiNodeSpec
151151 awaitAssert {
152152 // attempt to create entities on all nodes
153153 entityRef ! DummyEntity .Increment (transactionSeq2, amount = 0 , replyTo.ref)
154- replyTo.receiveMessage(1 .seconds )
154+ replyTo.receiveMessage(500 .millis )
155155 // All ReplicationActor states will eventually be the same as any other after the isolation is resolved
156156 actorRef = findEntityActorRef()
157157 actorRef ! DummyEntity .GetState (replyTo.ref)
158- replyTo.receiveMessage(1 .seconds ).count should be(5 )
158+ replyTo.receiveMessage(500 .millis ).count should be(5 )
159159 }
160160 }
161161 }
0 commit comments