Skip to content

Commit

Permalink
Add unit tests for event handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
3vilhamster committed Nov 6, 2024
1 parent 12e7e33 commit 67af6d9
Show file tree
Hide file tree
Showing 4 changed files with 411 additions and 118 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 67af6d9

Please sign in to comment.