From fab3172fee1880b7df316706fb76eacd669a60e8 Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Thu, 8 Feb 2024 16:39:30 -0500 Subject: [PATCH] CHORE: Refactor integration tests to support multiple tests --- integrationTest/integration_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/integrationTest/integration_test.go b/integrationTest/integration_test.go index 8af42e0b9..ae060425b 100644 --- a/integrationTest/integration_test.go +++ b/integrationTest/integration_test.go @@ -276,8 +276,12 @@ func makeChanges(t *testing.T, prv providers.DNSServiceProvider, dc *models.Doma } func runTests(t *testing.T, prv providers.DNSServiceProvider, domainName string, knownFailures map[int]bool, origConfig map[string]string) { - dc := getDomainConfigWithNameservers(t, prv, domainName) testGroups := makeTests(t) + runTestsHelper(t, prv, domainName, testGroups, origConfig) +} + +func runTestsHelper(t *testing.T, prv providers.DNSServiceProvider, domainName string, testGroups []*TestGroup, origConfig map[string]string) { + dc := getDomainConfigWithNameservers(t, prv, domainName) firstGroup := *startIdx if firstGroup == -1 {