From c89f14e926853e44d6dd7dfb0e4180dbb1db121d Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Fri, 18 Dec 2020 12:14:43 -0500 Subject: [PATCH] TESTING: Fail cleaner if no domain set (#998) --- integrationTest/integration_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/integrationTest/integration_test.go b/integrationTest/integration_test.go index d4fe1fe52..89e223b8a 100644 --- a/integrationTest/integration_test.go +++ b/integrationTest/integration_test.go @@ -65,6 +65,10 @@ func TestDNSProviders(t *testing.T) { if provider == nil { return } + if domain == "" { + t.Fatal("NO DOMAIN SET! Exiting!") + } + t.Run(domain, func(t *testing.T) { runTests(t, provider, domain, fails, cfg) }) @@ -255,6 +259,9 @@ func TestDualProviders(t *testing.T) { if p == nil { return } + if domain == "" { + t.Fatal("NO DOMAIN SET! Exiting!") + } dc := getDomainConfigWithNameservers(t, p, domain) // clear everything run := func() {