Skip to content

Commit

Permalink
Merge pull request kubernetes#26059 from wojtek-t/fix_reflector_resync
Browse files Browse the repository at this point in the history
Fix reflector test
  • Loading branch information
piosz committed May 23, 2016
2 parents ce2d7ab + 71726a8 commit 1d17eb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/client/cache/reflector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,9 @@ func TestReflectorResync(t *testing.T) {
}
resyncPeriod := 1 * time.Millisecond
r := NewReflector(lw, &api.Pod{}, s, resyncPeriod)
err := r.ListAndWatch(stopCh)
if err != rerr {
t.Errorf("expected exiting from err %v, got: %v", rerr, err)
if err := r.ListAndWatch(stopCh); err != nil {
// error from Resync is not propaged up to here.
t.Errorf("expected error %v", rerr, err)
}
if iteration != 2 {
t.Errorf("exactly 2 iterations were expected, got: %v", iteration)
Expand Down

0 comments on commit 1d17eb1

Please sign in to comment.