Commit eb8ac340 authored by Jerzy Szczepkowski's avatar Jerzy Szczepkowski

Merge pull request #14482 from wojtek-t/fix_load_test

Properly use framework in load test
parents ec0e1faa 3ab11970
...@@ -77,11 +77,12 @@ var _ = Describe("Load capacity", func() { ...@@ -77,11 +77,12 @@ var _ = Describe("Load capacity", func() {
AfterEach(func() { AfterEach(func() {
deleteAllRC(configs) deleteAllRC(configs)
framework.afterEach()
// Verify latency metrics // Verify latency metrics
highLatencyRequests, err := HighLatencyRequests(c, 3*time.Second, sets.NewString("events")) highLatencyRequests, err := HighLatencyRequests(c, 3*time.Second, sets.NewString("events"))
expectNoError(err, "Too many instances metrics above the threshold") expectNoError(err, "Too many instances metrics above the threshold")
Expect(highLatencyRequests).NotTo(BeNumerically(">", 0)) Expect(highLatencyRequests).NotTo(BeNumerically(">", 0))
framework.afterEach()
}) })
type Load struct { type Load struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment