mirror of
https://github.com/go-task/task.git
synced 2025-01-06 03:53:54 +02:00
Fix typo
This commit is contained in:
parent
9c68c7c50b
commit
4cee4aa5a8
@ -299,7 +299,7 @@ func TestPrecondition(t *testing.T) {
|
|||||||
buff.Reset()
|
buff.Reset()
|
||||||
|
|
||||||
// Calling a task with a precondition in a dependency fails the task
|
// Calling a task with a precondition in a dependency fails the task
|
||||||
assert.Error(t, e.Run(context.Background(), taskfile.Call{Task: "depends_on_imposssible"}))
|
assert.Error(t, e.Run(context.Background(), taskfile.Call{Task: "depends_on_impossible"}))
|
||||||
|
|
||||||
if buff.String() != "task: 1 != 0 obviously!\n" {
|
if buff.String() != "task: 1 != 0 obviously!\n" {
|
||||||
t.Errorf("Wrong output message: %s", buff.String())
|
t.Errorf("Wrong output message: %s", buff.String())
|
||||||
|
2
testdata/precondition/Taskfile.yml
vendored
2
testdata/precondition/Taskfile.yml
vendored
@ -10,7 +10,7 @@ tasks:
|
|||||||
- sh: "[ 1 = 0 ]"
|
- sh: "[ 1 = 0 ]"
|
||||||
msg: "1 != 0 obviously!"
|
msg: "1 != 0 obviously!"
|
||||||
|
|
||||||
depends_on_imposssible:
|
depends_on_impossible:
|
||||||
deps:
|
deps:
|
||||||
- impossible
|
- impossible
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user