Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zygimantass committed Jan 15, 2025
1 parent afc8345 commit 60bcb49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/provider/docker/task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ func TestTaskRunCommandWhileStopped(t *testing.T) {
require.NoError(t, err)
require.NotEmpty(t, state)

stdout, stderr, exitCode, err := task.RunCommandWhileStopped(ctx, []string{"sh", "-c", "echo hello"})
stdout, stderr, exitCode, err := task.RunCommand(ctx, []string{"sh", "-c", "echo hello"})
require.NoError(t, err)
require.Equal(t, 0, exitCode)
require.Empty(t, stderr)
require.Equal(t, "hello\n", stdout)

stdout, stderr, exitCode, err = task.RunCommandWhileStopped(ctx, []string{"sh", "-c", "echo hello >&2"})
stdout, stderr, exitCode, err = task.RunCommand(ctx, []string{"sh", "-c", "echo hello >&2"})
require.NoError(t, err)
require.Equal(t, 0, exitCode)
require.Empty(t, stdout)
Expand Down Expand Up @@ -234,7 +234,7 @@ func TestTaskReadWriteFile(t *testing.T) {
err = task.WriteFile(ctx, "test.txt", []byte("hello world"))
require.NoError(t, err)

stdout, stderr, exitCode, err := task.RunCommandWhileStopped(ctx, []string{"sh", "-c", "cat /data/test.txt"})
stdout, stderr, exitCode, err := task.RunCommand(ctx, []string{"sh", "-c", "cat /data/test.txt"})
require.NoError(t, err)
require.Equal(t, 0, exitCode)
require.Empty(t, stderr)
Expand Down

0 comments on commit 60bcb49

Please sign in to comment.