Update: namespaceName value updating order to prevent error expection

This commit is contained in:
Caleb Woodbine 2020-01-06 22:32:19 +00:00
parent bd6550fb34
commit 2754cc37ea

View File

@ -252,8 +252,8 @@ var _ = SIGDescribe("Namespaces [Serial]", func() {
ginkgo.By("creating a Namespace")
namespaceName := "nspatchtest-" + string(uuid.NewUUID())
ns, err := f.CreateNamespace(namespaceName, nil)
namespaceName = ns.ObjectMeta.Name
framework.ExpectNoError(err, "failed creating Namespace")
namespaceName = ns.ObjectMeta.Name
ginkgo.By("patching the Namespace")
nspatch := `{"metadata":{"labels":{"testLabel":"testValue"}}}`