Update: namespaceName value updating order to prevent error expection
This commit is contained in:
		| @@ -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"}}}` | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Caleb Woodbine
					Caleb Woodbine