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:
commit
c1c0b813f4
2 changed files with 1 additions and 1 deletions
1
Makefile
1
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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue