Sam Therapy
e782c9cb23
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
26 lines
593 B
Go
26 lines
593 B
Go
// SPDX-License-Identifier: BSD-3-Clause
|
|
//go:build unix || (!windows && !plan9 && !js && !zos)
|
|
|
|
// FIXME: Can remove the or on the preprocessor when Go 1.18 becomes obsolete
|
|
|
|
package conf_test
|
|
|
|
import (
|
|
"runtime"
|
|
"testing"
|
|
|
|
"dns.froth.zone/awl/conf"
|
|
"gotest.tools/v3/assert"
|
|
)
|
|
|
|
func TestUnixConfig(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
if runtime.GOOS == "windows" || runtime.GOOS == "plan9" || runtime.GOOS == "js" || runtime.GOOS == "zos" {
|
|
t.Skip("Not running Unix-like, skipping")
|
|
}
|
|
|
|
conf, err := conf.GetDNSConfig()
|
|
assert.NilError(t, err)
|
|
assert.Assert(t, len(conf.Servers) != 0)
|
|
}
|