mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-23 00:23:36 +01:00
c99ae6f009
Fixed spelling typos on logs, comments and command help text
25 lines
366 B
Go
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")
|
|
}
|
|
}
|