Skip to content

Commit 7a09e95

Browse files
committed
fix: timeouts should be considered executed
1 parent 7c76577 commit 7a09e95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ func (c *Command) ExecuteContext(ctx context.Context) error {
240240

241241
done := make(chan error, 1)
242242
go func() { done <- cmd.Wait() }()
243+
c.executed = true
243244

244245
select {
245246
case <-ctx.Done():
@@ -256,7 +257,6 @@ func (c *Command) ExecuteContext(ctx context.Context) error {
256257
c.getExitCode(err)
257258
}
258259

259-
c.executed = true
260260
return nil
261261
}
262262

0 commit comments

Comments
 (0)