Skip to content

Commit 5681bf2

Browse files
committed
Test fixes
1 parent 2add0ad commit 5681bf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/gateway_controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ var _ = Describe("Gateway controller non-ready resources", func() {
388388
}
389389
if !conditionStateIs(gwRead, "Accepted", PtrTo(metav1.ConditionTrue), nil, nil) ||
390390
!conditionStateIs(gwRead, "Ready", PtrTo(metav1.ConditionFalse), nil, nil) ||
391-
!conditionStateIs(gwRead, "Programmed", PtrTo(metav1.ConditionFalse), PtrTo("Pending"), PtrTo("Xmissing 1 resources: configMapTestIntermediate1\\[\\]")) {
391+
!conditionStateIs(gwRead, "Programmed", PtrTo(metav1.ConditionFalse), PtrTo("Pending"), PtrTo("missing 1 resources: configMapTestIntermediate1\\[\\]")) {
392392
return false
393393
}
394394
return true
@@ -397,7 +397,7 @@ var _ = Describe("Gateway controller non-ready resources", func() {
397397
})
398398
})
399399

400-
func conditionStateIs(gw *gatewayapi.Gateway, condType string, status *metav1.ConditionStatus, reason *string, messageRegEx *string) bool {
400+
func conditionStateIs(gw *gatewayapi.Gateway, condType string, status *metav1.ConditionStatus, reason, messageRegEx *string) bool {
401401
var msgMatch *regexp.Regexp
402402
if messageRegEx != nil {
403403
msgMatch, _ = regexp.Compile(*messageRegEx)

0 commit comments

Comments
 (0)