From c4d0191466e43d7f4ac7ef051cf67eb2dbd78b00 Mon Sep 17 00:00:00 2001 From: qingsenLi Date: Sat, 24 Oct 2020 15:53:22 +0800 Subject: [PATCH] fix typo in e2e test --- test/e2e_node/eviction_test.go | 14 +++++++------- test/e2e_node/system_node_critical_test.go | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/e2e_node/eviction_test.go b/test/e2e_node/eviction_test.go index 81ed808a03c..800d54e4c25 100644 --- a/test/e2e_node/eviction_test.go +++ b/test/e2e_node/eviction_test.go @@ -51,7 +51,7 @@ import ( const ( postTestConditionMonitoringPeriod = 1 * time.Minute evictionPollInterval = 2 * time.Second - pressureDissapearTimeout = 1 * time.Minute + pressureDisappearTimeout = 1 * time.Minute // pressure conditions often surface after evictions because the kubelet only updates // node conditions periodically. // we wait this period after evictions to make sure that we wait out this delay @@ -464,7 +464,7 @@ func runEvictionTest(f *framework.Framework, pressureTimeout time.Duration, expe // Nodes do not immediately report local storage capacity // Sleep so that pods requesting local storage do not fail to schedule time.Sleep(30 * time.Second) - ginkgo.By("seting up pods to be used by tests") + ginkgo.By("setting up pods to be used by tests") pods := []*v1.Pod{} for _, spec := range testSpecs { pods = append(pods, spec.pod) @@ -507,15 +507,15 @@ func runEvictionTest(f *framework.Framework, pressureTimeout time.Duration, expe logFunc() logKubeletLatencyMetrics(kubeletmetrics.EvictionStatsAgeKey) if expectedNodeCondition != noPressure && hasNodeCondition(f, expectedNodeCondition) { - return fmt.Errorf("Conditions havent returned to normal, node still has %s", expectedNodeCondition) + return fmt.Errorf("Conditions haven't returned to normal, node still has %s", expectedNodeCondition) } return nil - }, pressureDissapearTimeout, evictionPollInterval).Should(gomega.BeNil()) + }, pressureDisappearTimeout, evictionPollInterval).Should(gomega.BeNil()) ginkgo.By("checking for stable, pressure-free condition without unexpected pod failures") gomega.Consistently(func() error { if expectedNodeCondition != noPressure && hasNodeCondition(f, expectedNodeCondition) { - return fmt.Errorf("%s dissappeared and then reappeared", expectedNodeCondition) + return fmt.Errorf("%s disappeared and then reappeared", expectedNodeCondition) } logFunc() logKubeletLatencyMetrics(kubeletmetrics.EvictionStatsAgeKey) @@ -548,10 +548,10 @@ func runEvictionTest(f *framework.Framework, pressureTimeout time.Duration, expe ginkgo.By(fmt.Sprintf("making sure NodeCondition %s no longer exist on the node", expectedNodeCondition)) gomega.Eventually(func() error { if expectedNodeCondition != noPressure && hasNodeCondition(f, expectedNodeCondition) { - return fmt.Errorf("Conditions havent returned to normal, node still has %s", expectedNodeCondition) + return fmt.Errorf("Conditions haven't returned to normal, node still has %s", expectedNodeCondition) } return nil - }, pressureDissapearTimeout, evictionPollInterval).Should(gomega.BeNil()) + }, pressureDisappearTimeout, evictionPollInterval).Should(gomega.BeNil()) reduceAllocatableMemoryUsage() ginkgo.By("making sure we have all the required images for testing") diff --git a/test/e2e_node/system_node_critical_test.go b/test/e2e_node/system_node_critical_test.go index 9a9c7224d24..a25fe416232 100644 --- a/test/e2e_node/system_node_critical_test.go +++ b/test/e2e_node/system_node_critical_test.go @@ -113,10 +113,10 @@ var _ = framework.KubeDescribe("SystemNodeCriticalPod [Slow] [Serial] [Disruptiv ginkgo.By("making sure that node no longer has DiskPressure") gomega.Eventually(func() error { if hasNodeCondition(f, v1.NodeDiskPressure) { - return fmt.Errorf("Conditions havent returned to normal, node still has DiskPressure") + return fmt.Errorf("Conditions haven't returned to normal, node still has DiskPressure") } return nil - }, pressureDissapearTimeout, evictionPollInterval).Should(gomega.BeNil()) + }, pressureDisappearTimeout, evictionPollInterval).Should(gomega.BeNil()) }) }) })