diff --git a/tool/tsh/common/proxy_test.go b/tool/tsh/common/proxy_test.go index e6ee674a5f8dc..1127560465f92 100644 --- a/tool/tsh/common/proxy_test.go +++ b/tool/tsh/common/proxy_test.go @@ -737,7 +737,7 @@ func TestTSHConfigConnectWithOpenSSHClient(t *testing.T) { name: "node recording mode with TLS routing enabled", opts: []testSuiteOptionFunc{ withRootConfigFunc(func(cfg *servicecfg.Config) { - cfg.Auth.SessionRecordingConfig.SetMode(types.RecordAtNode) + cfg.Auth.SessionRecordingConfig.SetMode(types.RecordAtNodeSync) cfg.Auth.NetworkingConfig.SetProxyListenerMode(types.ProxyListenerMode_Multiplex) }), }, @@ -746,7 +746,7 @@ func TestTSHConfigConnectWithOpenSSHClient(t *testing.T) { name: "proxy recording mode with TLS routing enabled", opts: []testSuiteOptionFunc{ withRootConfigFunc(func(cfg *servicecfg.Config) { - cfg.Auth.SessionRecordingConfig.SetMode(types.RecordAtProxy) + cfg.Auth.SessionRecordingConfig.SetMode(types.RecordAtProxySync) cfg.Auth.NetworkingConfig.SetProxyListenerMode(types.ProxyListenerMode_Multiplex) }), }, @@ -755,7 +755,7 @@ func TestTSHConfigConnectWithOpenSSHClient(t *testing.T) { name: "node recording mode with TLS routing disabled", opts: []testSuiteOptionFunc{ withRootConfigFunc(func(cfg *servicecfg.Config) { - cfg.Auth.SessionRecordingConfig.SetMode(types.RecordAtNode) + cfg.Auth.SessionRecordingConfig.SetMode(types.RecordAtNodeSync) cfg.Auth.NetworkingConfig.SetProxyListenerMode(types.ProxyListenerMode_Separate) }), }, @@ -764,7 +764,7 @@ func TestTSHConfigConnectWithOpenSSHClient(t *testing.T) { name: "proxy recording mode with TLS routing disabled", opts: []testSuiteOptionFunc{ withRootConfigFunc(func(cfg *servicecfg.Config) { - cfg.Auth.SessionRecordingConfig.SetMode(types.RecordAtProxy) + cfg.Auth.SessionRecordingConfig.SetMode(types.RecordAtProxySync) cfg.Auth.NetworkingConfig.SetProxyListenerMode(types.ProxyListenerMode_Separate) }), }, diff --git a/tool/tsh/common/tsh_helper_test.go b/tool/tsh/common/tsh_helper_test.go index 942cc65bcd975..9895919816959 100644 --- a/tool/tsh/common/tsh_helper_test.go +++ b/tool/tsh/common/tsh_helper_test.go @@ -470,5 +470,4 @@ func mustRegisterKubeClusters(t *testing.T, ctx context.Context, authSrv *auth.S assert.Contains(c, gotNames, name, "missing kube cluster") } }, time.Second*10, time.Millisecond*500, "dynamically created kube clusters failed to register") - }