From ee1b0c81a768a143df09871040865ea365249b68 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Thu, 11 Oct 2018 13:06:37 -0700 Subject: [PATCH] e2e: fix some small typos --- test/e2e/e2e.go | 4 ++-- test/e2e/framework/service_util.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/e2e/e2e.go b/test/e2e/e2e.go index 8b20070c53..850a589430 100644 --- a/test/e2e/e2e.go +++ b/test/e2e/e2e.go @@ -222,12 +222,12 @@ var _ = ginkgo.SynchronizedBeforeSuite(func() []byte { } }) -// Similar to SynchornizedBeforeSuite, we want to run some operations only once (such as collecting cluster logs). +// Similar to SynchronizedBeforeSuite, we want to run some operations only once (such as collecting cluster logs). // Here, the order of functions is reversed; first, the function which runs everywhere, // and then the function that only runs on the first Ginkgo node. var _ = ginkgo.SynchronizedAfterSuite(func() { // Run on all Ginkgo nodes - framework.Logf("Running AfterSuite actions on all node") + framework.Logf("Running AfterSuite actions on all nodes") framework.RunCleanupActions() }, func() { // Run only Ginkgo on node 1 diff --git a/test/e2e/framework/service_util.go b/test/e2e/framework/service_util.go index 94c7b4871e..0c94ad2460 100644 --- a/test/e2e/framework/service_util.go +++ b/test/e2e/framework/service_util.go @@ -1523,7 +1523,7 @@ func CheckAffinity(jig *ServiceTestJig, execPod *v1.Pod, targetIp string, target } if shouldHold { if !transitionState && !affinityHolds { - return true, fmt.Errorf("Affintity should hold but didn't.") + return true, fmt.Errorf("Affinity should hold but didn't.") } if trackerFulfilled && affinityHolds { return true, nil @@ -1540,9 +1540,9 @@ func CheckAffinity(jig *ServiceTestJig, execPod *v1.Pod, targetIp string, target checkAffinityFailed(tracker, fmt.Sprintf("Connection to %s timed out or not enough responses.", targetIpPort)) } if shouldHold { - checkAffinityFailed(tracker, "Affintity should hold but didn't.") + checkAffinityFailed(tracker, "Affinity should hold but didn't.") } else { - checkAffinityFailed(tracker, "Affintity shouldn't hold but did.") + checkAffinityFailed(tracker, "Affinity shouldn't hold but did.") } return true }