Skip to content

Commit

Permalink
test: Reduce amount of time to wait before updating object
Browse files Browse the repository at this point in the history
  • Loading branch information
dlipovetsky authored and dkoshkin committed Jun 27, 2023
1 parent ef383c2 commit 2fb42e4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ data:
// value is unlikely to change. Our test below compares the lastAppliedTime values of two reconciles, so we wait
// to prevent the reconciles from running within the same second. Related issue: https://issues.k8s.io/15262
t.Log("Letting some time pass before updating the resource, so that lastAppliedTime will be different.")
time.Sleep(10 * time.Second)
time.Sleep(2 * time.Second)

// update the configmap data
t.Log("Updating the configmap resource")
Expand Down Expand Up @@ -1362,7 +1362,7 @@ data:
// value is unlikely to change. Our test below compares the lastAppliedTime values of two reconciles, so we wait
// to prevent the reconciles from running within the same second. Related issue: https://issues.k8s.io/15262
t.Log("Letting some time pass before updating the resource, so that lastAppliedTime will be different.")
time.Sleep(10 * time.Second)
time.Sleep(2 * time.Second)

// update the secrete, but not its data
t.Log("Updating the secret resource")
Expand Down

0 comments on commit 2fb42e4

Please sign in to comment.