From bad3159b624c9fc7511fa741d14a27898f3cf66b Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 13 Apr 2024 16:53:30 -0700 Subject: [PATCH] ipn/ipnlocal: delete useless SetControlClientGetterForTesting use Updates #11649 Change-Id: I56c069b9c97bd3e30ff87ec6655ec57e1698427c Signed-off-by: Brad Fitzpatrick --- ipn/ipnlocal/local_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ipn/ipnlocal/local_test.go b/ipn/ipnlocal/local_test.go index efa00f18c..231d5354a 100644 --- a/ipn/ipnlocal/local_test.go +++ b/ipn/ipnlocal/local_test.go @@ -825,16 +825,6 @@ func TestStatusPeerCapabilities(t *testing.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 { t.Run(tt.name, func(t *testing.T) { b.setNetMapLocked(&netmap.NetworkMap{