Skip to content

Commit ad0583d

Browse files
committed
update test paramaters name
1 parent f627dae commit ad0583d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

internal/controller/state/graph/graph_test.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,22 +1269,22 @@ func TestBuildGraph(t *testing.T) {
12691269
}
12701270

12711271
tests := []struct {
1272-
store ClusterState
1273-
expected *Graph
1274-
name string
1275-
experimental bool
1272+
store ClusterState
1273+
expected *Graph
1274+
name string
1275+
experimentalEnabled bool
12761276
}{
12771277
{
1278-
store: createStateWithGatewayClass(normalGC),
1279-
expected: createExpectedGraphWithGatewayClass(normalGC),
1280-
experimental: false,
1281-
name: "normal case",
1278+
store: createStateWithGatewayClass(normalGC),
1279+
expected: createExpectedGraphWithGatewayClass(normalGC),
1280+
experimentalEnabled: false,
1281+
name: "normal case",
12821282
},
12831283
{
1284-
store: createStateWithGatewayClass(differentControllerGC),
1285-
expected: &Graph{},
1286-
experimental: true,
1287-
name: "gatewayclass belongs to a different controller",
1284+
store: createStateWithGatewayClass(differentControllerGC),
1285+
expected: &Graph{},
1286+
experimentalEnabled: true,
1287+
name: "gatewayclass belongs to a different controller",
12881288
},
12891289
}
12901290

@@ -1315,7 +1315,7 @@ func TestBuildGraph(t *testing.T) {
13151315
PolicyValidator: fakePolicyValidator,
13161316
},
13171317
logr.Discard(),
1318-
test.experimental,
1318+
test.experimentalEnabled,
13191319
)
13201320

13211321
g.Expect(helpers.Diff(test.expected, result)).To(BeEmpty())

0 commit comments

Comments
 (0)