Skip to content

Commit

Permalink
tip needs this, I don't know why
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbourgon committed Sep 17, 2015
1 parent 983baec commit 8c835b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion farm/repair_strategies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@ func TestAllRepairs(t *testing.T) {
if i == 0 {
expected = second
}
if got := <-clusters[i].SelectOffset([]string{"foo"}, 0, 10); !reflect.DeepEqual(expected, got.KeyScoreMembers[0]) {
got := <-clusters[i].SelectOffset([]string{"foo"}, 0, 10)
if len(got.KeyScoreMembers) <= 0 {
t.Errorf("pre-repair: cluster %d: only got %d responses", i, len(got.KeyScoreMembers))
continue
}
if !reflect.DeepEqual(expected, got.KeyScoreMembers[0]) {
t.Errorf("pre-repair: cluster %d: expected %+v, got %+v", i, expected, got.KeyScoreMembers[0])
continue
}
}

Expand Down

0 comments on commit 8c835b0

Please sign in to comment.