Make scheduler integration test faster

Not to wait for 30 seconds for every negative test case. It cuts the
test time from 450s to 125s.
This commit is contained in:
Yongkun Anfernee Gui
2017-10-17 10:32:46 -07:00
parent df072ca97e
commit dc15e9cf90
4 changed files with 24 additions and 13 deletions

View File

@@ -384,7 +384,7 @@ func TestUnschedulableNodes(t *testing.T) {
}
// There are no schedulable nodes - the pod shouldn't be scheduled.
err = waitForPodToSchedule(context.clientSet, myPod)
err = waitForPodToScheduleWithTimeout(context.clientSet, myPod, 2*time.Second)
if err == nil {
t.Errorf("Pod scheduled successfully on unschedulable nodes")
}