Skip to content

Commit b609eb2

Browse files
Merge pull request #1271 from grzpiotrowski/OCPBUGS-59139-gatewayapi-dns-e2e-flakes
OCPBUGS-59139: Increase assertExpectedDNSRecords timeouts
2 parents b966710 + 7de7191 commit b609eb2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/e2e/util_gatewayapi_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,14 +732,15 @@ func assertExpectedDNSRecords(t *testing.T, expectations map[expectedDnsRecord]b
732732

733733
var expectationsMet bool
734734

735-
err := wait.PollUntilContextTimeout(context.Background(), 1*time.Second, 1*time.Minute, false, func(context context.Context) (bool, error) {
735+
err := wait.PollUntilContextTimeout(context.Background(), 5*time.Second, 2*time.Minute, false, func(context context.Context) (bool, error) {
736736
haveExpectNotPresent := false
737737
// expectationsMet starts true and gets set to false when some expectation is not met.
738738
expectationsMet = true
739739

740740
dnsRecords := &v1.DNSRecordList{}
741741
if err := kclient.List(context, dnsRecords, client.InNamespace(operatorcontroller.DefaultOperandNamespace)); err != nil {
742-
return false, fmt.Errorf("failed to list DNSRecords: %v", err)
742+
t.Logf("failed to list DNSRecords: %v, retrying...", err)
743+
return false, nil
743744
}
744745

745746
// Iterate over all expectations.

0 commit comments

Comments
 (0)