Fix reflector test

pull/6/head
Wojciech Tyczynski 2016-05-23 12:07:11 +02:00
parent ce2d7ab5f7
commit 71726a8ad0
1 changed files with 3 additions and 3 deletions

View File

@ -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)