Skip to content

Commit

Permalink
fix: timeouts should be considered executed
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhitt committed Aug 17, 2023
1 parent 7c76577 commit 7a09e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ func (c *Command) ExecuteContext(ctx context.Context) error {

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

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

c.executed = true
return nil
}

Expand Down

0 comments on commit 7a09e95

Please sign in to comment.