Skip to content

Commit 61c0227

Browse files
committed
fix linter issues
1 parent deb9821 commit 61c0227

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/query_workflow_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,13 @@ func (s *clientIntegrationSuite) TestQueryWorkflow_QueryBeforeStart() {
262262
func (s *clientIntegrationSuite) TestQueryWorkflow_QueryFailedWorkflowTask() {
263263

264264
workflowFn := func(ctx workflow.Context) (string, error) {
265-
workflow.SetQueryHandler(ctx, "test", func() (string, error) {
265+
err := workflow.SetQueryHandler(ctx, "test", func() (string, error) {
266266
return "", nil
267267
})
268268

269+
if err != nil {
270+
s.Logger.Fatal("SetQueryHandler failed: " + err.Error())
271+
}
269272
// force workflow task to fail
270273
panic("Workflow failed")
271274
}

0 commit comments

Comments
 (0)