mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
control/controlclient: fix a very rare httptest.Server log.Printf.
Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
This commit is contained in:
parent
fc88e34f42
commit
286f96e412
@ -30,6 +30,7 @@
|
|||||||
"github.com/tailscale/wireguard-go/wgcfg"
|
"github.com/tailscale/wireguard-go/wgcfg"
|
||||||
"tailscale.com/tailcfg"
|
"tailscale.com/tailcfg"
|
||||||
"tailscale.com/tstest"
|
"tailscale.com/tstest"
|
||||||
|
"tailscale.com/types/logger"
|
||||||
"tailscale.io/control" // not yet released
|
"tailscale.io/control" // not yet released
|
||||||
"tailscale.io/control/cfgdb"
|
"tailscale.io/control/cfgdb"
|
||||||
)
|
)
|
||||||
@ -1039,6 +1040,8 @@ func newServer(t *testing.T) *server {
|
|||||||
s.control.ServeHTTP(w, r)
|
s.control.ServeHTTP(w, r)
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
s.http.Config.ErrorLog = logger.StdLogger(logf)
|
||||||
|
|
||||||
s.control, err = control.New(tmpdir, tmpdir, tmpdir, s.http.URL, true, logf)
|
s.control, err = control.New(tmpdir, tmpdir, tmpdir, s.http.URL, true, logf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user