mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
add delay in e2e test
Signed-off-by: ShutingZhao <shutting06@gmail.com>
This commit is contained in:
parent
135afbb1be
commit
b5497f377c
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue