{ipn,control/controlclient}/tests: pass a logf function to control.New().

This matches the new API requirements.

Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
This commit is contained in:
Avery Pennarun
2020-05-13 22:43:47 -04:00
parent 9ccbcda612
commit a7edf11a40
3 changed files with 4 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ func TestClientsReusingKeys(t *testing.T) {
t.Fatal(err)
}
server, err = control.New(tmpdir, tmpdir, tmpdir, httpsrv.URL, true)
server, err = control.New(tmpdir, tmpdir, tmpdir, httpsrv.URL, true, t.Logf)
if err != nil {
t.Fatal(err)
}
@@ -191,7 +191,7 @@ func TestClientsReusingOldKey(t *testing.T) {
if err != nil {
t.Fatal(err)
}
server, err = control.New(tmpdir, tmpdir, tmpdir, httpsrv.URL, true)
server, err = control.New(tmpdir, tmpdir, tmpdir, httpsrv.URL, true, t.Logf)
if err != nil {
t.Fatal(err)
}