1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-17 05:48:21 +00:00

test: fix erroneous assert

This commit is contained in:
Markus Lehtonen 2025-03-03 16:15:43 +02:00
parent 3a3a6a31d5
commit 40cd7d41be

View file

@ -64,7 +64,7 @@ func TestRule(t *testing.T) {
m, err = Execute(r1, f, true)
assert.Nilf(t, err, "unexpected error: %v", err)
assert.Equal(t, r1.Labels, m.Labels, "empty matcher should have matched empty features")
assert.Empty(t, r1.Vars, "vars should be empty")
assert.Empty(t, m.Vars, "vars should be empty")
m, err = Execute(r2, f, true)
assert.NoError(t, err, "matching against a missing feature should not have returned an error")