Skip to content

Commit 98168bd

Browse files
javier-aliagaacroca
andcommitted
Update tests/orchestrations_test.go
Co-authored-by: Albert Callarisa <[email protected]> Signed-off-by: Javier Aliaga <[email protected]>
1 parent db1e110 commit 98168bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/orchestrations_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,9 +1359,9 @@ func Test_TaskExecutionId(t *testing.T) {
13591359
executionMap := make(map[string]int)
13601360
var executionId string
13611361
require.NoError(t, r.AddActivityN("FailActivity", func(ctx task.ActivityContext) (any, error) {
1362-
executionMap[ctx.GetTaskExecutionId()] = executionMap[ctx.GetTaskExecutionId()] + 1
13631362
executionId = ctx.GetTaskExecutionId()
1364-
if executionMap[ctx.GetTaskExecutionId()] == 3 {
1363+
executionMap[executionId]++
1364+
if executionMap[executionId] == 3 {
13651365
return nil, nil
13661366
}
13671367
return nil, errors.New("activity failure")

0 commit comments

Comments
 (0)