Skip to content

Commit

Permalink
Update test/dst/validator.go
Browse files Browse the repository at this point in the history
Co-authored-by: David Farr <[email protected]>
  • Loading branch information
avillega and dfarr authored Mar 10, 2025
1 parent 65ff776 commit d9e5337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/dst/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ func (v *Validator) ValidateCompleteTask(model *Model, reqTime int64, resTime in
return model, fmt.Errorf("task '%s' does not exist", req.CompleteTask.Id)
}
if !t.State.In(task.Completed|task.Timedout) && t.Timeout >= resTime {
// This could happen if the promise timetout
// This could happen if the promise timedout
p := model.promises.get(t.RootPromiseId)
if !promise.GetTimedoutState(p).In(promise.Pending) && resTime >= p.Timeout {
model = model.Copy()
Expand Down

0 comments on commit d9e5337

Please sign in to comment.