diff --git a/test/e2e_node/lock_contention_linux_test.go b/test/e2e_node/lock_contention_linux_test.go index ae01b23ebc3..c310b330e3a 100644 --- a/test/e2e_node/lock_contention_linux_test.go +++ b/test/e2e_node/lock_contention_linux_test.go @@ -67,21 +67,9 @@ var _ = SIGDescribe("Lock contention [Slow] [Disruptive] [NodeSpecialFeature:Loc ginkgo.By("verifying the kubelet is not healthy as there was a lock contention.") // Once the lock is acquired, check if the kubelet is in healthy state or not. - // It should not be. + // It should not be as the lock contention forces the kubelet to stop. gomega.Eventually(func() bool { return kubeletHealthCheck(kubeletHealthCheckURL) }, 10*time.Second, time.Second).Should(gomega.BeFalse()) - - ginkgo.By("releasing the lock on lock file i.e /var/run/kubelet.lock, triggering kubelet restart.") - // Release the lock. - err = unix.Flock(fd, unix.LOCK_UN) - framework.ExpectNoError(err) - - // Releasing the lock triggers kubelet to re-acquire the lock and restart. - ginkgo.By("verifying the kubelet is healthy after restart.") - // Kubelet should report healthy state. - gomega.Eventually(func() bool { - return kubeletHealthCheck(kubeletHealthCheckURL) - }, 10*time.Second, time.Second).Should(gomega.BeTrue()) }) })