awl/conf/plan9_test.go
Sam Therapy 0845ae2a82
All checks were successful
continuous-integration/drone/push Build is passing
refactor: Make tests less ugly (#102)
Reviewed-on: #102
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-09-21 23:08:31 +00:00

26 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)
}