Skip to content

Commit

Permalink
Merge pull request cockroachdb#10564 from petermattis/pmattis/deflake…
Browse files Browse the repository at this point in the history
…-test-store-range-upreplicate

storage: deflake TestStoreRangeUpReplicate
  • Loading branch information
petermattis authored Nov 9, 2016
2 parents 6593cfd + a486f42 commit 28a31c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/storage/client_raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,9 @@ func TestStoreRangeUpReplicate(t *testing.T) {
if r == nil {
return errors.Errorf("expected replica for keys \"a\" - \"b\"")
}
if n := s.ReservationCount(); n != 0 {
return errors.Errorf("expected 0 reservations, but found %d", n)
}
}
return nil
})
Expand All @@ -966,9 +969,6 @@ func TestStoreRangeUpReplicate(t *testing.T) {
generated += m.RangeSnapshotsGenerated.Count()
normalApplied += m.RangeSnapshotsNormalApplied.Count()
preemptiveApplied += m.RangeSnapshotsPreemptiveApplied.Count()
if n := s.ReservationCount(); n != 0 {
t.Fatalf("expected 0 reservations, but found %d", n)
}
}
if generated == 0 {
t.Fatalf("expected at least 1 snapshot, but found 0")
Expand Down

0 comments on commit 28a31c0

Please sign in to comment.