awl/conf/plan9_test.go
Sam Therapy b3485924d6
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build is failing
Code review :)
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-09-22 00:59:31 +02:00

25 lines
401 B
Go

// SPDX-License-Identifier: BSD-3-Clause
//go:build plan9
package conf_test
import (
"runtime"
"testing"
"git.froth.zone/sam/awl/conf"
"gotest.tools/v3/assert"
)
func TestPlan9Config(t *testing.T) {
t.Parallel()
if runtime.GOOS != "plan9" {
t.Skip("Not running Plan 9, skipping")
}
conf, err := conf.GetDNSConfig()
assert.NilError(t, err)
assert.Assert(t, len(conf.Servers) != 0)
}