From a0886fe67aab9e66fb90be21fba5ac0bdbf30c08 Mon Sep 17 00:00:00 2001 From: Nikita Pivkin Date: Mon, 15 Jul 2024 14:21:16 +0700 Subject: [PATCH] test: exclude deprecated checks when detecting duplicates Signed-off-by: Nikita Pivkin --- test/rules_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/rules_test.go b/test/rules_test.go index 6290b2e4..7dc9fc75 100644 --- a/test/rules_test.go +++ b/test/rules_test.go @@ -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{}{} + } } }