Skip to content

Commit a6fc18d

Browse files
author
Marko Vukolic
committed
fix sbft TestMonotonicViews
small bug within the test fixed. Change-Id: Ie481b28bb0935ad4dc5473c1ab1466f70100822d Signed-off-by: Marko Vukolic <[email protected]>
1 parent 71733be commit a6fc18d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orderer/sbft/simplebft/simplebft_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ func TestMonotonicViews(t *testing.T) {
196196
}
197197
sys.Run()
198198

199-
if repls[0].view != view {
200-
t.Fatalf("Replica 0 must be in view %d, but is in view %d", view, repls[0].view)
199+
if repls[0].view < view {
200+
t.Fatalf("Replica 0 must be at least in view %d, but is in view %d", view, repls[0].view)
201201
}
202202
}
203203

0 commit comments

Comments
 (0)