summaryrefslogtreecommitdiff
path: root/internal/task/task_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/task/task_test.go')
-rw-r--r--internal/task/task_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/task/task_test.go b/internal/task/task_test.go
index 637baf5..9873084 100644
--- a/internal/task/task_test.go
+++ b/internal/task/task_test.go
@@ -26,6 +26,7 @@ func TestValidTransition_AllowedTransitions(t *testing.T) {
{"blocked to queued (answer resume)", StateBlocked, StateQueued},
{"blocked to ready (parent unblocked by subtasks)", StateBlocked, StateReady},
{"budget exceeded to queued (retry)", StateBudgetExceeded, StateQueued},
+ {"cancelled to queued (restart)", StateCancelled, StateQueued},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {