Skip to content

Commit 70d0c7b

Browse files
committed
style(netfault): rename tc->tt in TestOptsProviderMatrix loop var
Match the package convention for table tests (every other table test in this file uses tt). Also avoids the visual collision with tc-as-in-traffic- control all over this netfault package.
1 parent b667cf1 commit 70d0c7b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

go/action_kit_commons/network/netfault/netfault_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ func TestOptsProviderMatrix(t *testing.T) {
124124
{"LimitBandwidthOpts", &LimitBandwidthOpts{}, false, true, false},
125125
{"TcpResetOpts", &TcpResetOpts{}, false, false, true},
126126
}
127-
for _, tc := range cases {
128-
t.Run(tc.name, func(t *testing.T) {
129-
_, isIp := tc.opts.(ipCommandProvider)
130-
_, isTc := tc.opts.(tcCommandProvider)
131-
_, isIptables := tc.opts.(iptablesScriptProvider)
132-
assert.Equal(t, tc.hasIp, isIp, "ipCommandProvider")
133-
assert.Equal(t, tc.hasTc, isTc, "tcCommandProvider")
134-
assert.Equal(t, tc.hasIptables, isIptables, "iptablesScriptProvider")
127+
for _, tt := range cases {
128+
t.Run(tt.name, func(t *testing.T) {
129+
_, isIp := tt.opts.(ipCommandProvider)
130+
_, isTc := tt.opts.(tcCommandProvider)
131+
_, isIptables := tt.opts.(iptablesScriptProvider)
132+
assert.Equal(t, tt.hasIp, isIp, "ipCommandProvider")
133+
assert.Equal(t, tt.hasTc, isTc, "tcCommandProvider")
134+
assert.Equal(t, tt.hasIptables, isIptables, "iptablesScriptProvider")
135135
})
136136
}
137137
}

0 commit comments

Comments
 (0)