|
|
@ -29,13 +29,13 @@ import (
|
|
|
|
"github.com/klauspost/compress/zstd"
|
|
|
|
"github.com/klauspost/compress/zstd"
|
|
|
|
"github.com/tailscale/wireguard-go/wgcfg"
|
|
|
|
"github.com/tailscale/wireguard-go/wgcfg"
|
|
|
|
"tailscale.com/tailcfg"
|
|
|
|
"tailscale.com/tailcfg"
|
|
|
|
"tailscale.com/testy"
|
|
|
|
"tailscale.com/tstest"
|
|
|
|
"tailscale.io/control" // not yet released
|
|
|
|
"tailscale.io/control" // not yet released
|
|
|
|
"tailscale.io/control/cfgdb"
|
|
|
|
"tailscale.io/control/cfgdb"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func TestTest(t *testing.T) {
|
|
|
|
func TestTest(t *testing.T) {
|
|
|
|
check := testy.NewResourceCheck()
|
|
|
|
check := tstest.NewResourceCheck()
|
|
|
|
defer check.Assert(t)
|
|
|
|
defer check.Assert(t)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -967,7 +967,7 @@ type server struct {
|
|
|
|
control *control.Server
|
|
|
|
control *control.Server
|
|
|
|
http *httptest.Server
|
|
|
|
http *httptest.Server
|
|
|
|
clients []*client
|
|
|
|
clients []*client
|
|
|
|
check *testy.ResourceCheck
|
|
|
|
check *tstest.ResourceCheck
|
|
|
|
segmentMsg chan map[string]interface{}
|
|
|
|
segmentMsg chan map[string]interface{}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -975,10 +975,10 @@ const segmentKey = "segkey"
|
|
|
|
|
|
|
|
|
|
|
|
func newServer(t *testing.T) *server {
|
|
|
|
func newServer(t *testing.T) *server {
|
|
|
|
t.Helper()
|
|
|
|
t.Helper()
|
|
|
|
testy.FixLogs(t)
|
|
|
|
tstest.FixLogs(t)
|
|
|
|
s := &server{
|
|
|
|
s := &server{
|
|
|
|
t: t,
|
|
|
|
t: t,
|
|
|
|
check: testy.NewResourceCheck(),
|
|
|
|
check: tstest.NewResourceCheck(),
|
|
|
|
segmentMsg: make(chan map[string]interface{}, 8),
|
|
|
|
segmentMsg: make(chan map[string]interface{}, 8),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|