From af79fb26a2af0adb0da11f6709e76915f9c858c3 Mon Sep 17 00:00:00 2001 From: Steve Kuznetsov Date: Wed, 21 Dec 2022 06:37:08 -0700 Subject: [PATCH] test/e2e: remove MultiClusterRoundTripper No clients set the context anymore, so this round-tripper does nothing. Signed-off-by: Steve Kuznetsov --- test/e2e/framework/syncer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/framework/syncer.go b/test/e2e/framework/syncer.go index 90dece53651d..9790de6c14e0 100644 --- a/test/e2e/framework/syncer.go +++ b/test/e2e/framework/syncer.go @@ -475,11 +475,11 @@ func (sf *syncerFixture) Start(t *testing.T) *StartedSyncerFixture { virtualWorkspaceRawConfig.Contexts["upsyncer"].Cluster = "upsyncer" syncerVWConfig, err := clientcmd.NewNonInteractiveClientConfig(*virtualWorkspaceRawConfig, "syncer", nil, nil).ClientConfig() require.NoError(t, err) - syncerVWConfig = kcpclienthelper.SetMultiClusterRoundTripper(rest.AddUserAgent(rest.CopyConfig(syncerVWConfig), t.Name())) + syncerVWConfig = rest.AddUserAgent(rest.CopyConfig(syncerVWConfig), t.Name()) require.NoError(t, err) upsyncerVWConfig, err := clientcmd.NewNonInteractiveClientConfig(*virtualWorkspaceRawConfig, "upsyncer", nil, nil).ClientConfig() require.NoError(t, err) - upsyncerVWConfig = kcpclienthelper.SetMultiClusterRoundTripper(rest.AddUserAgent(rest.CopyConfig(upsyncerVWConfig), t.Name())) + upsyncerVWConfig = rest.AddUserAgent(rest.CopyConfig(upsyncerVWConfig), t.Name()) require.NoError(t, err) startedSyncer := &StartedSyncerFixture{