mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
fix: tests after DinD update
This commit is contained in:
@@ -121,7 +121,7 @@ func TestExecBasicCommands(t *testing.T) {
|
|||||||
|
|
||||||
exitCode, err := cli.ExecContainer(ctx, serviceName, "", execOptions)
|
exitCode, err := cli.ExecContainer(ctx, serviceName, "", execOptions)
|
||||||
require.NoError(t, err, "exec should not fail, but command should return non-zero exit")
|
require.NoError(t, err, "exec should not fail, but command should return non-zero exit")
|
||||||
assert.Equal(t, 126, exitCode, "invalid command should return non-zero exit code")
|
assert.Equal(t, 127, exitCode, "invalid command should return non-zero exit code")
|
||||||
assert.Contains(t, stdout.String(), "executable file not found")
|
assert.Contains(t, stdout.String(), "executable file not found")
|
||||||
assert.Equal(t, "", stderr.String(), "stderr should be empty")
|
assert.Equal(t, "", stderr.String(), "stderr should be empty")
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user