mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-26 00:23:00 +08:00
TESTING: Fail cleaner if no domain set (#998)
This commit is contained in:
parent
5cb6c533e6
commit
c89f14e926
1 changed files with 7 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue