Sam Therapy
4c9221ee29
Some checks failed
continuous-integration/drone/push Build is failing
:^) Signed-off-by: Sam Therapy <sam@samtherapy.net>
22 lines
388 B
Go
22 lines
388 B
Go
// SPDX-License-Identifier: BSD-3-Clause
|
|
//go:build !windows
|
|
|
|
package conf_test
|
|
|
|
import (
|
|
"runtime"
|
|
"testing"
|
|
|
|
"git.froth.zone/sam/awl/conf"
|
|
"gotest.tools/v3/assert"
|
|
)
|
|
|
|
func TestNonWinConfig(t *testing.T) {
|
|
if runtime.GOOS == "windows" {
|
|
t.Skip("Running Windows, skipping")
|
|
}
|
|
|
|
conf, err := conf.GetDNSConfig()
|
|
assert.NilError(t, err)
|
|
assert.Assert(t, len(conf.Servers) != 0)
|
|
}
|