mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-13 11:23:42 +00:00
Add an extra test
This commit is contained in:
1 parent
5330599c93
commit
1c25ee9d71
3 files changed
+12
-1
No files matched your search
@@ -21,6 +21,7 @@ func TestRunEvent(t *testing.T) {
|
||||
{"basic.workflow", "push", ""},
|
||||
{"pipe.workflow", "push", ""},
|
||||
{"fail.workflow", "push", "exit with `FAILURE`: 1"},
|
||||
{"buildfail.workflow", "push", "COPY failed"},
|
||||
{"regex.workflow", "push", "exit with `NEUTRAL`: 78"},
|
||||
{"gitref.workflow", "push", ""},
|
||||
{"env.workflow", "push", ""},
|
||||
@@ -42,7 +43,7 @@ func TestRunEvent(t *testing.T) {
|
||||
if table.errorMessage == "" {
|
||||
assert.NilError(t, err, table.workflowPath)
|
||||
} else {
|
||||
assert.Error(t, err, table.errorMessage)
|
||||
assert.ErrorContains(t, err, table.errorMessage)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user