Skip to content

Commit 98d3416

Browse files
committed
improve test
1 parent cf2ca1e commit 98d3416

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

raft/src/test/scala/zio/raft/RaftIntegrationSpec.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,12 @@ object RaftIntegrationSpec extends ZIOSpecDefault:
165165
_ <- r1.sendCommand(Increase)
166166
_ <- r1.sendCommand(Increase)
167167

168-
readResult <- r1.readState
168+
readResult1 <- r1.readState
169169

170170
_ <- r1.sendCommand(Increase)
171-
yield assertTrue(readResult == 3)
171+
172+
readResult2 <- r1.readState
173+
yield assertTrue(readResult1 == 3 && readResult2 == 4)
172174
},
173175
test("read returns the correct state when there are no writes") {
174176
for

0 commit comments

Comments
 (0)