mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Update: namespaceName value updating order to prevent error expection
This commit is contained in:
parent
bd6550fb34
commit
2754cc37ea
@ -252,8 +252,8 @@ var _ = SIGDescribe("Namespaces [Serial]", func() {
|
|||||||
ginkgo.By("creating a Namespace")
|
ginkgo.By("creating a Namespace")
|
||||||
namespaceName := "nspatchtest-" + string(uuid.NewUUID())
|
namespaceName := "nspatchtest-" + string(uuid.NewUUID())
|
||||||
ns, err := f.CreateNamespace(namespaceName, nil)
|
ns, err := f.CreateNamespace(namespaceName, nil)
|
||||||
namespaceName = ns.ObjectMeta.Name
|
|
||||||
framework.ExpectNoError(err, "failed creating Namespace")
|
framework.ExpectNoError(err, "failed creating Namespace")
|
||||||
|
namespaceName = ns.ObjectMeta.Name
|
||||||
|
|
||||||
ginkgo.By("patching the Namespace")
|
ginkgo.By("patching the Namespace")
|
||||||
nspatch := `{"metadata":{"labels":{"testLabel":"testValue"}}}`
|
nspatch := `{"metadata":{"labels":{"testLabel":"testValue"}}}`
|
||||||
|
Loading…
Reference in New Issue
Block a user