Merge pull request #36594 from mtaufen/fixup-density_test

Automatic merge from submit-queue

Fix wrong comparison var in e2e_node density test
This commit is contained in:
Kubernetes Submit Queue 2016-11-10 15:27:47 -08:00 committed by GitHub
commit e7754e89df

View File

@ -469,8 +469,8 @@ func verifyPodStartupLatency(expect, actual framework.LatencyMetric) error {
if actual.Perc90 > expect.Perc90 { if actual.Perc90 > expect.Perc90 {
return fmt.Errorf("too high pod startup latency 90th percentile: %v", actual.Perc90) return fmt.Errorf("too high pod startup latency 90th percentile: %v", actual.Perc90)
} }
if actual.Perc99 > actual.Perc99 { if actual.Perc99 > expect.Perc99 {
return fmt.Errorf("too high pod startup latency 99th percentil: %v", actual.Perc99) return fmt.Errorf("too high pod startup latency 99th percentile: %v", actual.Perc99)
} }
return nil return nil
} }