mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 03:31:39 +00:00
ipn/ipnlocal: delete useless SetControlClientGetterForTesting use
Updates #11649 Change-Id: I56c069b9c97bd3e30ff87ec6655ec57e1698427c Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
8186cd0349
commit
bad3159b62
@ -825,16 +825,6 @@ func TestStatusPeerCapabilities(t *testing.T) {
|
|||||||
}
|
}
|
||||||
b := newTestLocalBackend(t)
|
b := newTestLocalBackend(t)
|
||||||
|
|
||||||
var cc *mockControl
|
|
||||||
b.SetControlClientGetterForTesting(func(opts controlclient.Options) (controlclient.Client, error) {
|
|
||||||
cc = newClient(t, opts)
|
|
||||||
|
|
||||||
t.Logf("ccGen: new mockControl.")
|
|
||||||
cc.called("New")
|
|
||||||
return cc, nil
|
|
||||||
})
|
|
||||||
b.Start(ipn.Options{})
|
|
||||||
b.StartLoginInteractive()
|
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
b.setNetMapLocked(&netmap.NetworkMap{
|
b.setNetMapLocked(&netmap.NetworkMap{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user