From d83c2dd8dd3fddba722c7e14b0fb2963f3c0240f Mon Sep 17 00:00:00 2001 From: Mzack9999 Date: Fri, 28 Jul 2023 19:20:52 +0200 Subject: [PATCH] converting dsl tests to new struct (#4003) --- v2/cmd/integration-test/dsl.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v2/cmd/integration-test/dsl.go b/v2/cmd/integration-test/dsl.go index 7d60e8f5..76c6dc0f 100644 --- a/v2/cmd/integration-test/dsl.go +++ b/v2/cmd/integration-test/dsl.go @@ -9,9 +9,9 @@ import ( "github.com/projectdiscovery/nuclei/v2/pkg/testutils" ) -var dslTestcases = map[string]testutils.TestCase{ - "dsl/hide-version-warning.yaml": &dslVersionWarning{}, - "dsl/show-version-warning.yaml": &dslShowVersionWarning{}, +var dslTestcases = []TestCaseInfo{ + {Path: "dsl/hide-version-warning.yaml", TestCase: &dslVersionWarning{}}, + {Path: "dsl/show-version-warning.yaml", TestCase: &dslShowVersionWarning{}}, } type dslVersionWarning struct{}