@@ -98,13 +98,9 @@ func TestActivitySequenceParallelStatements(t *testing.T) {
9898 for _ , tt := range tests {
9999 t .Run (tt .name , func (t * testing.T ) {
100100 env := testSuite .NewTestWorkflowEnvironment ()
101- env .RegisterWorkflow (simpleDSLWorkflow )
102-
103- // Register a sample activity
104101 env .RegisterActivityWithOptions (sampleActivity , activity.RegisterOptions {
105102 Name : "sampleActivity" ,
106103 })
107-
108104 env .ExecuteWorkflow (func (ctx workflow.Context ) error {
109105 ctx = workflow .WithActivityOptions (ctx , workflow.ActivityOptions {
110106 ScheduleToStartTimeout : time .Minute ,
@@ -207,9 +203,6 @@ func TestSequenceFlow(t *testing.T) {
207203 for _ , tt := range tests {
208204 t .Run (tt .name , func (t * testing.T ) {
209205 env := testSuite .NewTestWorkflowEnvironment ()
210- env .RegisterWorkflow (simpleDSLWorkflow )
211-
212- // Register a sample activity
213206 env .RegisterActivityWithOptions (sampleActivity , activity.RegisterOptions {
214207 Name : "sampleActivity" ,
215208 })
@@ -316,9 +309,6 @@ func TestParallelFlow(t *testing.T) {
316309 for _ , tt := range tests {
317310 t .Run (tt .name , func (t * testing.T ) {
318311 env := testSuite .NewTestWorkflowEnvironment ()
319- env .RegisterWorkflow (simpleDSLWorkflow )
320-
321- // Register a sample activity
322312 env .RegisterActivityWithOptions (sampleActivity , activity.RegisterOptions {
323313 Name : "sampleActivity" ,
324314 })
@@ -379,9 +369,6 @@ func TestActivityInvocationFlow(t *testing.T) {
379369 for _ , tt := range tests {
380370 t .Run (tt .name , func (t * testing.T ) {
381371 env := testSuite .NewTestWorkflowEnvironment ()
382- env .RegisterWorkflow (simpleDSLWorkflow )
383-
384- // Register a sample activity
385372 env .RegisterActivityWithOptions (sampleActivity , activity.RegisterOptions {
386373 Name : "sampleActivity" ,
387374 })
@@ -407,7 +394,6 @@ func TestActivityInvocationFlow(t *testing.T) {
407394func Test_SimpleDSLWorkflow (t * testing.T ) {
408395 testSuite := & testsuite.WorkflowTestSuite {}
409396 env := testSuite .NewTestWorkflowEnvironment ()
410- env .RegisterWorkflow (simpleDSLWorkflow )
411397
412398 // Define a sample DSL workflow
413399 dslWorkflow := Workflow {
0 commit comments