mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
ipn, controlclient: add control.New parameter
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
parent
f4c7eb8c44
commit
d2b7cb1e45
@ -1031,7 +1031,7 @@ func newServer(t *testing.T) *server {
|
||||
s.control.ServeHTTP(w, r)
|
||||
}
|
||||
}))
|
||||
s.control, err = control.New(tmpdir, tmpdir, s.http.URL, true)
|
||||
s.control, err = control.New(tmpdir, tmpdir, tmpdir, s.http.URL, true)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ func TestClientsReusingKeys(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
server, err = control.New(tmpdir, tmpdir, httpsrv.URL, true)
|
||||
server, err = control.New(tmpdir, tmpdir, tmpdir, httpsrv.URL, true)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@ -174,7 +174,7 @@ func TestClientsReusingOldKey(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
server, err = control.New(tmpdir, tmpdir, httpsrv.URL, true)
|
||||
server, err = control.New(tmpdir, tmpdir, tmpdir, httpsrv.URL, true)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ func TestIPN(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("create tempdir: %v\n", err)
|
||||
}
|
||||
ctl, err = control.New(tmpdir, tmpdir, serverURL, true)
|
||||
ctl, err = control.New(tmpdir, tmpdir, tmpdir, serverURL, true)
|
||||
if err != nil {
|
||||
t.Fatalf("create control server: %v\n", ctl)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user