mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-12 02:15:01 +00:00
Fix flaky TestKube/proxy_kube_with_exec-cmd (#65994)
This commit is contained in:
@@ -121,7 +121,7 @@ func (p *kubeTestPack) testProxyKubeWithExecCmd(t *testing.T) {
|
||||
{
|
||||
name: "backward compatibility - no exec-cmd",
|
||||
args: []string{"proxy", "kube", p.rootKubeCluster1, "--insecure", "--exec"},
|
||||
expectedCmd: []string{os.Getenv("SHELL")},
|
||||
expectedCmd: []string{getExecCommand("")},
|
||||
},
|
||||
{
|
||||
name: "exec-cmd without exec flag",
|
||||
@@ -138,8 +138,6 @@ func (p *kubeTestPack) testProxyKubeWithExecCmd(t *testing.T) {
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
if tt.expectError {
|
||||
err := Run(t.Context(), tt.args)
|
||||
require.Error(t, err)
|
||||
|
||||
Reference in New Issue
Block a user