mirror of https://github.com/k3s-io/k3s
Merge pull request #15623 from wojtek-t/always_delete_namespace
Auto commit by PR queue botpull/6/head
commit
6a4b76f34c
|
@ -122,6 +122,10 @@ var _ = Describe("Density", func() {
|
|||
})
|
||||
|
||||
AfterEach(func() {
|
||||
// We can't call it explicitly at the end, because it will not be called
|
||||
// if Expect() fails.
|
||||
defer framework.afterEach()
|
||||
|
||||
// Remove any remaining pods from this test if the
|
||||
// replication controller still exists and the replica count
|
||||
// isn't 0. This means the controller wasn't cleaned up
|
||||
|
@ -146,8 +150,6 @@ var _ = Describe("Density", func() {
|
|||
highLatencyRequests, err := HighLatencyRequests(c, 3*time.Second)
|
||||
expectNoError(err)
|
||||
Expect(highLatencyRequests).NotTo(BeNumerically(">", 0), "There should be no high-latency requests")
|
||||
|
||||
framework.afterEach()
|
||||
})
|
||||
|
||||
// Tests with "Skipped" substring in their name will be skipped when running
|
||||
|
|
|
@ -74,14 +74,16 @@ var _ = Describe("Load capacity", func() {
|
|||
|
||||
// TODO add flag that allows to skip cleanup on failure
|
||||
AfterEach(func() {
|
||||
// We can't call it explicitly at the end, because it will not be called
|
||||
// if Expect() fails.
|
||||
defer framework.afterEach()
|
||||
|
||||
deleteAllRC(configs)
|
||||
|
||||
// Verify latency metrics
|
||||
highLatencyRequests, err := HighLatencyRequests(c, 3*time.Second)
|
||||
expectNoError(err, "Too many instances metrics above the threshold")
|
||||
Expect(highLatencyRequests).NotTo(BeNumerically(">", 0))
|
||||
|
||||
framework.afterEach()
|
||||
})
|
||||
|
||||
type Load struct {
|
||||
|
|
Loading…
Reference in New Issue