Verify request latency in e2e performance tests.

This commit is contained in:
Filip Grzadkowski
2015-04-29 12:24:01 +02:00
parent bd3d853242
commit 551cec2a21
2 changed files with 74 additions and 0 deletions

View File

@@ -154,6 +154,13 @@ var _ = Describe("Density", func() {
// Tune the threshold for allowed failures.
badEvents := BadEvents(events)
Expect(badEvents).NotTo(BeNumerically(">", int(math.Floor(0.01*float64(totalPods)))))
// Verify latency metrics
// TODO: Update threshold to 1s once we reach this goal
// TODO: We should reset metrics before the test. Currently previous tests influence latency metrics.
highLatencyRequests, err := HighLatencyRequests(c, 10*time.Second)
expectNoError(err)
Expect(highLatencyRequests).NotTo(BeNumerically(">", 0))
})
}
})