1
0
mirror of https://github.com/netbirdio/netbird.git synced 2024-12-12 18:00:49 +01:00
netbird/client/internal/dns/server_export_test.go
Fabio Fantoni c99ae6f009
fix some typo spotted with codespell ()
Fixed spelling typos on logs, comments and command help text
2023-11-01 17:11:16 +01:00

25 lines
366 B
Go

package dns
import (
"testing"
)
func TestGetServerDns(t *testing.T) {
_, err := GetServerDns()
if err == nil {
t.Errorf("invalid dns server instance")
}
srv := &MockServer{}
setServerDns(srv)
srvB, err := GetServerDns()
if err != nil {
t.Errorf("invalid dns server instance: %s", err)
}
if srvB != srv {
t.Errorf("mismatch dns instances")
}
}