From c3832428b603bac2dd08d83f8991703d2af7a7f0 Mon Sep 17 00:00:00 2001 From: "xin.li" Date: Thu, 13 Jun 2024 13:13:29 +0800 Subject: [PATCH] Modify some error words Signed-off-by: xin.li --- pkg/apis/core/validation/validation_test.go | 6 +++--- test/e2e_node/podresources_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/apis/core/validation/validation_test.go b/pkg/apis/core/validation/validation_test.go index 977c952788d..7bf17beb308 100644 --- a/pkg/apis/core/validation/validation_test.go +++ b/pkg/apis/core/validation/validation_test.go @@ -23983,15 +23983,15 @@ func TestCrossNamespaceSource(t *testing.T) { expectedFail: true, claimSpec: pvcSpecWithCrossNamespaceSource(nil, "UnsupportedKind", &goodNS, goodName, false), }, { - testName: "Feature gate enabled and xns DataSourceRef with invalid namspace specified", + testName: "Feature gate enabled and xns DataSourceRef with invalid namespace specified", expectedFail: true, claimSpec: pvcSpecWithCrossNamespaceSource(&snapAPIGroup, snapKind, &badNS, goodName, false), }, { - testName: "Feature gate enabled and xns DataSourceRef with nil namspace specified", + testName: "Feature gate enabled and xns DataSourceRef with nil namespace specified", expectedFail: false, claimSpec: pvcSpecWithCrossNamespaceSource(&snapAPIGroup, snapKind, nil, goodName, false), }, { - testName: "Feature gate enabled and xns DataSourceRef with empty namspace specified", + testName: "Feature gate enabled and xns DataSourceRef with empty namespace specified", expectedFail: false, claimSpec: pvcSpecWithCrossNamespaceSource(&snapAPIGroup, snapKind, &emptyNS, goodName, false), }, { diff --git a/test/e2e_node/podresources_test.go b/test/e2e_node/podresources_test.go index edeb4ca61fa..7bb87085622 100644 --- a/test/e2e_node/podresources_test.go +++ b/test/e2e_node/podresources_test.go @@ -1315,7 +1315,7 @@ func teardownSampleDevicePluginOrFail(ctx context.Context, f *framework.Framewor ginkgo.By(fmt.Sprintf("Delete sample device plugin pod %s/%s", pod.Namespace, pod.Name)) err := f.ClientSet.CoreV1().Pods(pod.Namespace).Delete(ctx, pod.Name, deleteOptions) - framework.ExpectNoError(err, "Failed to delete Pod %v in Namspace %v", pod.Name, pod.Namespace) + framework.ExpectNoError(err, "Failed to delete Pod %v in Namespace %v", pod.Name, pod.Namespace) waitForAllContainerRemoval(ctx, pod.Name, pod.Namespace) }