Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 2488e24

Browse files
3vilhamstermrombout
authored andcommitted
Add unit tests for event handlers (cadence-workflow#1387)
* Add unit tests for event handlers
1 parent acca524 commit 2488e24

File tree

4 files changed

+382
-129
lines changed

4 files changed

+382
-129
lines changed

internal/error_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ func Test_SignalExternalWorkflowExecutionFailedError(t *testing.T) {
460460
InitiatedEventId: common.Int64Ptr(initiatedEventID),
461461
Cause: shared.SignalExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution.Ptr(),
462462
})
463-
require.NoError(t, weh.handleSignalExternalWorkflowExecutionFailed(event))
463+
weh.handleSignalExternalWorkflowExecutionFailed(event)
464464
_, ok := actualErr.(*UnknownExternalWorkflowExecutionError)
465465
require.True(t, ok)
466466
}

0 commit comments

Comments
 (0)