Skip to content

Commit 40cd7d4

Browse files
committed
test: fix erroneous assert
1 parent 3a3a6a3 commit 40cd7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apis/nfd/nodefeaturerule/rule_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func TestRule(t *testing.T) {
6464
m, err = Execute(r1, f, true)
6565
assert.Nilf(t, err, "unexpected error: %v", err)
6666
assert.Equal(t, r1.Labels, m.Labels, "empty matcher should have matched empty features")
67-
assert.Empty(t, r1.Vars, "vars should be empty")
67+
assert.Empty(t, m.Vars, "vars should be empty")
6868

6969
m, err = Execute(r2, f, true)
7070
assert.NoError(t, err, "matching against a missing feature should not have returned an error")

0 commit comments

Comments
 (0)