diff --git a/cni/network/network_windows_test.go b/cni/network/network_windows_test.go index d5fb3ec277..ae640f6825 100644 --- a/cni/network/network_windows_test.go +++ b/cni/network/network_windows_test.go @@ -1350,8 +1350,8 @@ func TestPluginWindowsAdd(t *testing.T) { epInfo1.EndpointPolicies[0] = policy.Policy{ Type: policy.ACLPolicy, } - require.Equal(t, len(epInfo1.EndpointPolicies), 1) - require.Equal(t, len(epInfo2.EndpointPolicies), 1) + require.Len(t, epInfo1.EndpointPolicies, 1) + require.Len(t, epInfo2.EndpointPolicies, 1) require.NotEqual(t, epInfo1.EndpointPolicies, epInfo2.EndpointPolicies) } // ensure the network policy slices are separate entities when in separate endpoint infos