Skip to content

Commit

Permalink
fix sbft TestMonotonicViews
Browse files Browse the repository at this point in the history
small bug within the test fixed.

Change-Id: Ie481b28bb0935ad4dc5473c1ab1466f70100822d
Signed-off-by: Marko Vukolic <mvu@zurich.ibm.com>
  • Loading branch information
Marko Vukolic committed Dec 14, 2016
1 parent 71733be commit a6fc18d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orderer/sbft/simplebft/simplebft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ func TestMonotonicViews(t *testing.T) {
}
sys.Run()

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

Expand Down

0 comments on commit a6fc18d

Please sign in to comment.