Skip to content

Commit

Permalink
test: exclude deprecated checks when detecting duplicates
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Pivkin <[email protected]>
  • Loading branch information
nikpivkin authored and simar7 committed Jul 16, 2024
1 parent 1d50c01 commit 41cb0b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ func TestAVDIDs(t *testing.T) {
t.Errorf("Rule detected with duplicate AVD ID: %s", rule.GetRule().AVDID)
}
})
existing[rule.GetRule().AVDID] = struct{}{}

if !rule.IsDeprecated() {
existing[rule.GetRule().AVDID] = struct{}{}
}
}
}

0 comments on commit 41cb0b0

Please sign in to comment.