mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
skip swap stress tests if swap is not provisioned
Signed-off-by: Itamar Holder <iholder@redhat.com>
This commit is contained in:
parent
d145bf0907
commit
37d80518d2
@ -153,7 +153,9 @@ var _ = SIGDescribe("Swap", "[LinuxOnly]", nodefeature.Swap, func() {
|
||||
gomega.Expect(nodeUsedMemory.IsZero()).To(gomega.BeFalseBecause("node used memory is zero"))
|
||||
|
||||
swapCapacity = getSwapCapacity(f, sleepingPod)
|
||||
gomega.Expect(swapCapacity.IsZero()).To(gomega.BeFalseBecause("node swap capacity is zero"))
|
||||
if swapCapacity.IsZero() {
|
||||
e2eskipper.Skipf("swap is not provisioned on the node")
|
||||
}
|
||||
|
||||
err := podClient.Delete(context.Background(), sleepingPod.Name, metav1.DeleteOptions{})
|
||||
framework.ExpectNoError(err)
|
||||
|
Loading…
Reference in New Issue
Block a user