Log information wrong while wait.ForeverTestTimeout

pull/6/head
lixiaobing10051267 2016-07-25 17:35:11 +08:00
parent 4fdde68f78
commit 9be345cb8f
2 changed files with 4 additions and 4 deletions

View File

@ -481,7 +481,7 @@ func TestWatchControllers(t *testing.T) {
select {
case <-received:
case <-time.After(wait.ForeverTestTimeout):
t.Errorf("Expected 1 call but got 0")
t.Errorf("unexpected timeout from result channel")
}
}
@ -528,7 +528,7 @@ func TestWatchPods(t *testing.T) {
select {
case <-received:
case <-time.After(wait.ForeverTestTimeout):
t.Errorf("Expected 1 call but got 0")
t.Errorf("unexpected timeout from result channel")
}
}

View File

@ -466,7 +466,7 @@ func TestWatchControllers(t *testing.T) {
select {
case <-received:
case <-time.After(wait.ForeverTestTimeout):
t.Errorf("Expected 1 call but got 0")
t.Errorf("unexpected timeout from result channel")
}
}
@ -512,7 +512,7 @@ func TestWatchPods(t *testing.T) {
select {
case <-received:
case <-time.After(wait.ForeverTestTimeout):
t.Errorf("Expected 1 call but got 0")
t.Errorf("unexpected timeout from result channel")
}
}