mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
Properly use framework in load test
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user