Skip to content

Commit 4f9956f

Browse files
author
Kate Osborn
committed
Use gateway api const
1 parent 4ada84b commit 4f9956f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/suite/client_settings_test.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ import (
2121
"github.com./nginxinc/nginx-gateway-fabric/tests/framework"
2222
)
2323

24-
const (
25-
conditionTypeAccepted = "Accepted"
26-
)
27-
2824
var _ = Describe("ClientSettingsPolicy", Ordered, Label("functional", "cspolicy"), func() {
2925
var (
3026
files = []string{
@@ -285,7 +281,7 @@ func ancestorStatusMustHaveAcceptedCondition(
285281
return fmt.Errorf("expected 1 condition in status, got %d", len(status.Conditions))
286282
}
287283

288-
if status.Conditions[0].Type != conditionTypeAccepted {
284+
if status.Conditions[0].Type != string(v1alpha2.RouteConditionAccepted) {
289285
return fmt.Errorf("expected condition type to be Accepted, got %s", status.Conditions[0].Type)
290286
}
291287

0 commit comments

Comments
 (0)