mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-17 13:58:21 +00:00
test: fix erroneous assert
This commit is contained in:
parent
3a3a6a31d5
commit
40cd7d41be
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ func TestRule(t *testing.T) {
|
||||||
m, err = Execute(r1, f, true)
|
m, err = Execute(r1, f, true)
|
||||||
assert.Nilf(t, err, "unexpected error: %v", err)
|
assert.Nilf(t, err, "unexpected error: %v", err)
|
||||||
assert.Equal(t, r1.Labels, m.Labels, "empty matcher should have matched empty features")
|
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)
|
m, err = Execute(r2, f, true)
|
||||||
assert.NoError(t, err, "matching against a missing feature should not have returned an error")
|
assert.NoError(t, err, "matching against a missing feature should not have returned an error")
|
||||||
|
|
Loading…
Add table
Reference in a new issue