add delay in e2e test
@@ -1051,6 +1051,8 @@ func Test_Generate_Policy_Deletion_for_Clone(t *testing.T) {
err = commonE2E.PolicyCreated(tests.PolicyName)
Expect(err).NotTo(HaveOccurred())
+ time.Sleep(5 * time.Second)
+
// ======= Create Namespace ==================
By(fmt.Sprintf("Creating Namespace which triggers generate %s", clPolNS))
_, err = e2eClient.CreateClusteredResourceYaml(nsGVR, namespaceYaml)
@@ -1081,6 +1083,7 @@ func Test_Generate_Policy_Deletion_for_Clone(t *testing.T) {
// test: generated resource is not deleted after deletion of generate policy
// ========== Delete the Generate Policy =============
+ time.Sleep(2 * time.Second)
By(fmt.Sprintf("Delete the generate policy : %s", tests.PolicyName))
err = e2eClient.DeleteClusteredResource(clPolGVR, tests.PolicyName)
