1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-31 04:04:51 +00:00

Merge pull request #2107 from marquiz/devel/api-test

api/nfd: fix broken unit test
This commit is contained in:
Kubernetes Prow Robot 2025-03-27 09:42:41 -07:00 committed by GitHub
commit c1c0b813f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View file

@ -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

View file

@ -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)