Comment out racey part of the multi-scheduler test.

Should fix #22848.
This commit is contained in:
Matt Liggett 2016-03-31 16:56:10 -07:00
parent 9e96d44111
commit 6ace15eb73

View File

@ -417,6 +417,14 @@ func TestMultiScheduler(t *testing.T) {
if err != nil {
t.Errorf("Failed to delete pod: %v", err)
}
// The rest of this test assumes that closing StopEverything will cause the
// scheduler thread to stop immediately. It won't, and in fact it will often
// schedule 1 more pod before finally exiting. Comment out until we fix that.
//
// See https://github.com/kubernetes/kubernetes/issues/23715 for more details.
/*
close(schedulerConfig.StopEverything)
// 8. create 2 pods: testPodNoAnnotation2 and testPodWithAnnotationFitsDefault2
@ -446,6 +454,7 @@ func TestMultiScheduler(t *testing.T) {
} else {
t.Logf("Test MultiScheduler: %s Pod scheduled", testPodWithAnnotationFitsDefault2.Name)
}
*/
}
func createPod(name string, annotation map[string]string) *api.Pod {