Fix flaky TestKube/proxy_kube_with_exec-cmd (#65994)

This commit is contained in:
Jake Alti
2026-04-22 03:11:54 +00:00
committed by GitHub
parent fbdd4f214e
commit a8cc3174a8
+1 -3
View File
@@ -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)