awl/conf/win_test.go
Sam Therapy 7314122951
All checks were successful
continuous-integration/drone/push Build is passing
more modular
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-08-31 02:48:57 +02:00

25 lines
404 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 TestWinConfig(t *testing.T) {
t.Parallel()
if runtime.GOOS != "windows" {
t.Skip("Not running Windows, skipping")
}
conf, err := conf.GetDNSConfig()
assert.NilError(t, err)
assert.Assert(t, len(conf.Servers) != 0)
}