diff --git a/Makefile b/Makefile index 04cd39d83..cd14a8d43 100644 --- a/Makefile +++ b/Makefile @@ -191,6 +191,7 @@ helm-lint: test: $(GO_CMD) test -covermode=atomic -coverprofile=coverage.out ./cmd/... ./pkg/... ./source/... + cd api/nfd && $(GO_CMD) test -covermode=atomic -coverprofile=coverage.out ./... e2e-test: @if [ -z ${KUBECONFIG} ]; then echo "[ERR] KUBECONFIG missing, must be defined"; exit 1; fi diff --git a/api/nfd/v1alpha1/feature_test.go b/api/nfd/v1alpha1/feature_test.go index 9d2a68b40..2cac9d2bf 100644 --- a/api/nfd/v1alpha1/feature_test.go +++ b/api/nfd/v1alpha1/feature_test.go @@ -85,7 +85,6 @@ func TestInstanceFeatureSet(t *testing.T) { assert.Equal(t, expectedElems, f1.Elements) f2 = NewInstanceFeatures() - expectedElems = []InstanceFeature{} f2.MergeInto(&f1) assert.Equal(t, expectedElems, f1.Elements)