Modify some error words

Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
xin.li 2024-06-13 13:13:29 +08:00
parent 7943c17867
commit c3832428b6
2 changed files with 4 additions and 4 deletions

View File

@ -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),
}, {

View File

@ -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)
}