Skip to content

Commit 72741d1

Browse files
authored
Fix bad test setups
1 parent f44366e commit 72741d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/activity/executor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestExecutor_ExecuteActivity(t *testing.T) {
4848
result: func(t *testing.T, result payload.Payload, err error) {
4949
require.Nil(t, result)
5050
require.Error(t, err)
51-
require.EqualError(t, err, "converting activity inputs: mismatched argument count: expected 3, got 0")
51+
require.EqualError(t, err, "converting activity inputs: mismatched argument count: expected 2, got 0")
5252
},
5353
},
5454
}

internal/workflow/executor_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func Test_ReplayWorkflowWithActivityResult(t *testing.T) {
133133
history.EventType_WorkflowExecutionStarted,
134134
&history.ExecutionStartedAttributes{
135135
Name: fn.Name(workflowWithActivity),
136-
Inputs: []payload.Payload{inputs},
136+
Inputs: []payload.Payload{},
137137
},
138138
),
139139
history.NewHistoryEvent(
@@ -332,7 +332,7 @@ func Test_ExecuteNewEvents(t *testing.T) {
332332
history.EventType_WorkflowExecutionStarted,
333333
&history.ExecutionStartedAttributes{
334334
Name: fn.Name(workflowWithActivity),
335-
Inputs: []payload.Payload{inputs},
335+
Inputs: []payload.Payload{},
336336
},
337337
),
338338
history.NewPendingEvent(

0 commit comments

Comments
 (0)