Skip to content

Commit

Permalink
fix failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sjberman committed Jan 9, 2025
1 parent 33d1ea8 commit bb8a252
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/mode/static/status/prepare_requests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package status
import (
"context"
"errors"
"fmt"
"testing"

. "github.com/onsi/gomega"
Expand Down Expand Up @@ -1087,7 +1088,7 @@ func TestBuildGatewayStatuses(t *testing.T) {
ObservedGeneration: 2,
LastTransitionTime: transitionTime,
Reason: string(v1.GatewayReasonInvalid),
Message: staticConds.GatewayMessageFailedNginxReload,
Message: fmt.Sprintf("%s: test error", staticConds.GatewayMessageFailedNginxReload),
},
},
Listeners: []v1.ListenerStatus{
Expand Down Expand Up @@ -1125,7 +1126,7 @@ func TestBuildGatewayStatuses(t *testing.T) {
ObservedGeneration: 2,
LastTransitionTime: transitionTime,
Reason: string(v1.ListenerReasonInvalid),
Message: staticConds.ListenerMessageFailedNginxReload,
Message: fmt.Sprintf("%s: test error", staticConds.ListenerMessageFailedNginxReload),
},
},
},
Expand Down

0 comments on commit bb8a252

Please sign in to comment.