Skip to content

Commit 1def024

Browse files
committed
fix tests
1 parent 9032428 commit 1def024

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/scheduler/shell_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestShellCommand(t *testing.T) {
3939
ctx := context.Background()
4040

4141
_, _, err = scheduler.ExecuteProgramCommand(ctx, "", []string{""})
42-
assert.EqualError(t, err, "Program command cannot be empty", "Empty command should out, fail")
42+
assert.EqualError(t, err, "program command cannot be empty", "Empty command should out, fail")
4343

4444
_, out, err = scheduler.ExecuteProgramCommand(ctx, "ping0", nil)
4545
assert.NoError(t, err, "Command with nil param is out, OK")

internal/scheduler/tasks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func TestExecuteTask(t *testing.T) {
4343

4444
assert.Error(t, et("Download", []string{"foo"}), "Invalid json")
4545
assert.EqualError(t, et("Download", []string{`{"workersnum": 0, "fileurls": [] }`}),
46-
"Files to download are not specified", "Download with empty files should fail")
46+
"files to download are not specified", "Download with empty files should fail")
4747
assert.Error(t, et("Download", []string{`{"workersnum": 0, "fileurls": ["http://foo.bar"], "destpath": "" }`}),
4848
"Downlod incorrect url should fail")
4949

0 commit comments

Comments
 (0)