Skip to content

Commit

Permalink
Simplify test slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Oct 2, 2024
1 parent 6b00c42 commit 446a09e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions internal/internal_task_pollers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,7 @@ func TestWFTPanicInTaskHandler(t *testing.T) {
wfType := commonpb.WorkflowType{Name: t.Name() + "-workflow-type"}
reg := newRegistry()
reg.RegisterWorkflowWithOptions(func(ctx Context) error {
return Await(ctx, func() bool {
return false
})
return nil
}, RegisterWorkflowOptions{
Name: wfType.Name,
})
Expand All @@ -424,10 +422,7 @@ func TestWFTPanicInTaskHandler(t *testing.T) {
WorkflowExecution: &wfe,
WorkflowType: &wfType,
History: &history,
// encode the task pseudo-ID into the token; 0 here and 1 for
// pollResp1 below. The mock will use this as an index into
// `completionChans` (above) to get a task-specific control channel.
TaskToken: codec.AppendUint32(nil, 0),
TaskToken: codec.AppendUint32(nil, 0),
}
task0 = workflowTask{task: &pollResp0}
)
Expand Down

0 comments on commit 446a09e

Please sign in to comment.