diff --git a/runtime/resource_test.go b/runtime/resource_test.go index cf09b996..9ecbafc9 100644 --- a/runtime/resource_test.go +++ b/runtime/resource_test.go @@ -46,6 +46,7 @@ func TestResources(t *testing.T) { assert.Len(t, networkPolicy.AllowedLabels, 1) networkPolicy, err = NewNetworkPolicy("ingress", "test", map[string]string{"foo": "bar", "bar": "foo"}) + assert.NoError(t, err) assert.Len(t, networkPolicy.AllowedLabels, 2) // Service: