control/controlclient: remove some public API, move to Options & test-only
Includes adding StartPaused, which will be used in a future change to enable netmap caching testing. Updates #12639 Change-Id: Iec39915d33b8d75e9b8315b281b1af2f5d13a44a Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
139c395d7d
commit
a5b2f18567
@@ -60,9 +60,11 @@ func fakeControlClient(t *testing.T, c *http.Client) (*controlclient.Auto, *even
|
||||
NoiseTestClient: c,
|
||||
Dialer: dialer,
|
||||
Bus: bus,
|
||||
|
||||
SkipStartForTests: true,
|
||||
}
|
||||
|
||||
cc, err := controlclient.NewNoStart(opts)
|
||||
cc, err := controlclient.New(opts)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user