15 lines
208 B
Go
15 lines
208 B
Go
package mdns
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestServer_StartStop(t *testing.T) {
|
|
s := makeService(t)
|
|
serv, err := NewServer(&Config{s})
|
|
if err != nil {
|
|
t.Fatalf("err: %v", err)
|
|
}
|
|
defer serv.Shutdown()
|
|
}
|