Skip to content

Commit 68f3fff

Browse files
committed
refactoring to accommodate review comment from @Groxx
1 parent f9206b5 commit 68f3fff

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

cmd/samples/dsl/workflow_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
package main
22

33
import (
4-
"context"
54
"fmt"
65
"testing"
76
"time"
87

98
"github.com/stretchr/testify/require"
109
"go.uber.org/cadence/activity"
11-
"go.uber.org/cadence/encoded"
1210
"go.uber.org/cadence/testsuite"
1311
"go.uber.org/cadence/workflow"
1412
)
@@ -415,18 +413,10 @@ func Test_SimpleDSLWorkflow(t *testing.T) {
415413
Name: "sampleActivity",
416414
})
417415

418-
var activityCalled []string
419-
env.SetOnActivityStartedListener(func(activityInfo *activity.Info, ctx context.Context, args encoded.Values) {
420-
activityType := activityInfo.ActivityType.Name
421-
activityCalled = append(activityCalled, activityType)
422-
require.Equal(t, "sampleActivity", activityType)
423-
})
424-
425416
env.ExecuteWorkflow(simpleDSLWorkflow, dslWorkflow)
426417

427418
require.True(t, env.IsWorkflowCompleted())
428419
require.NoError(t, env.GetWorkflowError())
429-
require.Equal(t, []string{"sampleActivity"}, activityCalled)
430420
}
431421

432422
func sampleActivity(input []string) (string, error) {

0 commit comments

Comments
 (0)