mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-16 04:12:16 +01:00
fix(cmd): failing test
This commit is contained in:
@@ -104,19 +104,8 @@ func TestCmd_Wait(t *testing.T) {
|
|||||||
expectWaitError: false,
|
expectWaitError: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
scenario: "wait error",
|
scenario: "wait error",
|
||||||
cmd: func() *Cmd {
|
cmd: Command(zap.NewNop(), "echo", "Hello", "World"),
|
||||||
cmd := Command(zap.NewNop(), "echo", "Hello", "World")
|
|
||||||
err := cmd.Start()
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("expected no error but got: %v", err)
|
|
||||||
}
|
|
||||||
err = cmd.Kill()
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("expected no error but got: %v", err)
|
|
||||||
}
|
|
||||||
return cmd
|
|
||||||
}(),
|
|
||||||
expectWaitError: true,
|
expectWaitError: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user