From 9be345cb8f602d70826c67ee4adb45ede82aaf9f Mon Sep 17 00:00:00 2001
From: lixiaobing10051267
Date: Mon, 25 Jul 2016 17:35:11 +0800
Subject: [PATCH] Log information wrong while wait.ForeverTestTimeout
---
pkg/controller/replicaset/replica_set_test.go | 4 ++--
pkg/controller/replication/replication_controller_test.go | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pkg/controller/replicaset/replica_set_test.go b/pkg/controller/replicaset/replica_set_test.go
index 1858b4aabf9..95b2d6e68e1 100644
--- a/pkg/controller/replicaset/replica_set_test.go
+++ b/pkg/controller/replicaset/replica_set_test.go
@@ -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")
}
}
diff --git a/pkg/controller/replication/replication_controller_test.go b/pkg/controller/replication/replication_controller_test.go
index 8cf150c0dcd..ccaa892e6de 100644
--- a/pkg/controller/replication/replication_controller_test.go
+++ b/pkg/controller/replication/replication_controller_test.go
@@ -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")
}
}