Skip to content

Commit

Permalink
tests: Fix flaky dnspolicy test (#854)
Browse files Browse the repository at this point in the history
Flaky test:
```
 Summarizing 1 Failure:
  [FAIL] DNSPolicy controller valid target and valid gateway status [It] should re-create dns record when listener hostname changes
  /home/runner/work/kuadrant-operator/kuadrant-operator/tests/common/dnspolicy/dnspolicy_controller_test.go:766
```

Caused by not waiting long enough for the records to become ready again, increased the timout on the check.

Signed-off-by: Michael Nairn <[email protected]>
  • Loading branch information
mikenairn authored Sep 12, 2024
1 parent bbd25fa commit 316728b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/dnspolicy/dnspolicy_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ var _ = Describe("DNSPolicy controller", func() {
)
currentRec = newRec
currentWildcardRec = newWildcardRec
}, tests.TimeoutMedium, time.Second).Should(BeNil())
}, tests.TimeoutLong, time.Second).Should(BeNil())
}, testTimeOut)

It("should remove gateway back reference on policy deletion", func(ctx SpecContext) {
Expand Down

0 comments on commit 316728b

Please sign in to comment.