Skip to content

Commit ce0a999

Browse files
author
Kate Osborn
committed
Fix typos
1 parent d3a46a2 commit ce0a999

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/mode/static/state/graph/policies_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ func TestAttachPolicyToService(t *testing.T) {
601601
name: "no attachment; gateway is invalid",
602602
policy: &Policy{Source: &policiesfakes.FakePolicy{}},
603603
svc: &ReferencedService{ParentGateways: []types.NamespacedName{winningGwNsName}},
604-
gw: getGateway(false /*valid*/),
604+
gw: getGateway(false /*invalid*/),
605605
expAttached: false,
606606
expAncestors: []PolicyAncestor{
607607
{
@@ -625,7 +625,7 @@ func TestAttachPolicyToService(t *testing.T) {
625625
t.Parallel()
626626
g := NewWithT(t)
627627

628-
attachPolicyToService(test.policy, test.svc, test.gw, "ctrl")
628+
attachPolicyToService(test.policy, test.svc, test.gw, "ctlr")
629629
if test.expAttached {
630630
g.Expect(test.svc.Policies).To(HaveLen(1))
631631
} else {

internal/mode/static/state/graph/service_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func TestBuildReferencedServices(t *testing.T) {
297297
exp: nil,
298298
},
299299
{
300-
name: "route wil nil parent attachment status",
300+
name: "route with nil parent attachment status",
301301
l7Routes: map[RouteKey]*L7Route{
302302
{NamespacedName: types.NamespacedName{Name: "nil-attachment-route"}}: nilAttachmentRoute,
303303
},
@@ -395,6 +395,6 @@ func TestGetUniqueAttachedParentGateways(t *testing.T) {
395395
{Namespace: "test2", Name: "attached-2"},
396396
}
397397

398-
uniqueAtttachedRefs := getUniqueAttachedParentGateways(parentRefs)
399-
g.Expect(uniqueAtttachedRefs).To(Equal(expectedNsNames))
398+
uniqueAttachedRefs := getUniqueAttachedParentGateways(parentRefs)
399+
g.Expect(uniqueAttachedRefs).To(Equal(expectedNsNames))
400400
}

0 commit comments

Comments
 (0)