mirror of
https://github.com/wweir/sower.git
synced 2026-10-21 03:33:32 +00:00
21 lines
360 B
Go
21 lines
360 B
Go
package dns
|
|
|
|
import "testing"
|
|
|
|
func TestGetDefaultDNSServer(t *testing.T) {
|
|
t.Skip("skip for some enviroment not support dhcp")
|
|
|
|
tests := []struct {
|
|
name string
|
|
}{{
|
|
"",
|
|
}}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
if got := GetDefaultDNSServer(); got == "" {
|
|
t.Errorf("GetDefaultDNSServer() return empty")
|
|
}
|
|
})
|
|
}
|
|
}
|