mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
So setting up logging for ctrld binary and ctrld packages could be done more easily, decouple the required setup for interactive vs daemon running. This is the first step toward replacing rs/zerolog libary with a different logging library.
15 lines
201 B
Go
15 lines
201 B
Go
package ctrld
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func TestNameservers(t *testing.T) {
|
|
ns := nameservers(context.Background())
|
|
if len(ns) == 0 {
|
|
t.Fatal("failed to get nameservers")
|
|
}
|
|
t.Log(ns)
|
|
}
|