@@ -109,7 +109,7 @@ func (w *Workflows) ActivityRetryOnTimeout(ctx workflow.Context, timeoutType sha
109109 ctx = workflow .WithActivityOptions (ctx , opts )
110110
111111 startTime := workflow .Now (ctx )
112- err := workflow .ExecuteActivity (ctx , "Activities_Sleep " , 2 * time .Second ).Get (ctx , nil )
112+ err := workflow .ExecuteActivity (ctx , "Sleep " , 2 * time .Second ).Get (ctx , nil )
113113 if err == nil {
114114 return nil , fmt .Errorf ("expected activity to fail but succeeded" )
115115 }
@@ -138,7 +138,7 @@ func (w *Workflows) ActivityRetryOnHBTimeout(ctx workflow.Context) ([]string, er
138138
139139 var result int
140140 startTime := workflow .Now (ctx )
141- err := workflow .ExecuteActivity (ctx , "Activities_HeartbeatAndSleep " , 0 , 2 * time .Second ).Get (ctx , & result )
141+ err := workflow .ExecuteActivity (ctx , "HeartbeatAndSleep " , 0 , 2 * time .Second ).Get (ctx , & result )
142142 if err == nil {
143143 return nil , fmt .Errorf ("expected activity to fail but succeeded" )
144144 }
@@ -453,7 +453,7 @@ func (w *Workflows) RetryTimeoutStableErrorWorkflow(ctx workflow.Context) ([]str
453453 }
454454 ctx = workflow .WithActivityOptions (ctx , ao )
455455
456- err := workflow .ExecuteActivity (ctx , "Activities_RetryTimeoutStableErrorActivity " ).Get (ctx , nil )
456+ err := workflow .ExecuteActivity (ctx , "RetryTimeoutStableErrorActivity " ).Get (ctx , nil )
457457
458458 cerr , ok := err .(* cadence.CustomError )
459459 if ! ok {
@@ -487,13 +487,13 @@ func (w *Workflows) childForMemoAndSearchAttr(ctx workflow.Context) (result stri
487487 return
488488 }
489489 ctx = workflow .WithActivityOptions (ctx , w .defaultActivityOptions ())
490- err = workflow .ExecuteActivity (ctx , "Activities_GetMemoAndSearchAttr " , memo , searchAttr ).Get (ctx , & result )
490+ err = workflow .ExecuteActivity (ctx , "GetMemoAndSearchAttr " , memo , searchAttr ).Get (ctx , & result )
491491 return
492492}
493493
494494func (w * Workflows ) sleep (ctx workflow.Context , d time.Duration ) error {
495495 ctx = workflow .WithActivityOptions (ctx , w .defaultActivityOptions ())
496- return workflow .ExecuteActivity (ctx , "Activities_Sleep " , d ).Get (ctx , nil )
496+ return workflow .ExecuteActivity (ctx , "Sleep " , d ).Get (ctx , nil )
497497}
498498
499499func (w * Workflows ) InspectActivityInfo (ctx workflow.Context ) error {
0 commit comments