Skip to content

Commit

Permalink
Add unit tests for event handlers (#1387)
Browse files Browse the repository at this point in the history
* Add unit tests for event handlers
  • Loading branch information
3vilhamster authored Nov 6, 2024
1 parent 7ea1dc7 commit 6774654
Show file tree
Hide file tree
Showing 4 changed files with 382 additions and 129 deletions.
2 changes: 1 addition & 1 deletion internal/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ func Test_SignalExternalWorkflowExecutionFailedError(t *testing.T) {
InitiatedEventId: common.Int64Ptr(initiatedEventID),
Cause: shared.SignalExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution.Ptr(),
})
require.NoError(t, weh.handleSignalExternalWorkflowExecutionFailed(event))
weh.handleSignalExternalWorkflowExecutionFailed(event)
_, ok := actualErr.(*UnknownExternalWorkflowExecutionError)
require.True(t, ok)
}
Expand Down
Loading

0 comments on commit 6774654

Please sign in to comment.