@@ -1346,7 +1346,7 @@ func Test_TaskExecutionId(t *testing.T) {
1346
1346
t .Run ("SingleActivityWithRetry" , func (t * testing.T ) {
1347
1347
// Registration
1348
1348
r := task .NewTaskRegistry ()
1349
- require .NoError (t , r .AddOrchestratorN ("TaskExecutionId " , func (ctx * task.OrchestrationContext ) (any , error ) {
1349
+ require .NoError (t , r .AddOrchestratorN ("TaskExecutionID " , func (ctx * task.OrchestrationContext ) (any , error ) {
1350
1350
if err := ctx .CallActivity ("FailActivity" , task .WithActivityRetryPolicy (& task.RetryPolicy {
1351
1351
MaxAttempts : 3 ,
1352
1352
InitialRetryInterval : 10 * time .Millisecond ,
@@ -1359,7 +1359,7 @@ func Test_TaskExecutionId(t *testing.T) {
1359
1359
executionMap := make (map [string ]int )
1360
1360
var executionId string
1361
1361
require .NoError (t , r .AddActivityN ("FailActivity" , func (ctx task.ActivityContext ) (any , error ) {
1362
- executionId = ctx .GetTaskExecutionId ()
1362
+ executionId = ctx .GetTaskExecutionID ()
1363
1363
executionMap [executionId ]++
1364
1364
if executionMap [executionId ] == 3 {
1365
1365
return nil , nil
@@ -1374,7 +1374,7 @@ func Test_TaskExecutionId(t *testing.T) {
1374
1374
defer worker .Shutdown (ctx )
1375
1375
1376
1376
// Run the orchestration
1377
- id , err := client .ScheduleNewOrchestration (ctx , "TaskExecutionId " )
1377
+ id , err := client .ScheduleNewOrchestration (ctx , "TaskExecutionID " )
1378
1378
require .NoError (t , err )
1379
1379
1380
1380
metadata , err := client .WaitForOrchestrationCompletion (ctx , id )
@@ -1391,7 +1391,7 @@ func Test_TaskExecutionId(t *testing.T) {
1391
1391
t .Run ("ParallelActivityWithRetry" , func (t * testing.T ) {
1392
1392
// Registration
1393
1393
r := task .NewTaskRegistry ()
1394
- require .NoError (t , r .AddOrchestratorN ("TaskExecutionId " , func (ctx * task.OrchestrationContext ) (any , error ) {
1394
+ require .NoError (t , r .AddOrchestratorN ("TaskExecutionID " , func (ctx * task.OrchestrationContext ) (any , error ) {
1395
1395
t1 := ctx .CallActivity ("FailActivity" , task .WithActivityRetryPolicy (& task.RetryPolicy {
1396
1396
MaxAttempts : 3 ,
1397
1397
InitialRetryInterval : 10 * time .Millisecond ,
@@ -1421,8 +1421,8 @@ func Test_TaskExecutionId(t *testing.T) {
1421
1421
require .NoError (t , r .AddActivityN ("FailActivity" , func (ctx task.ActivityContext ) (any , error ) {
1422
1422
lock .Lock ()
1423
1423
defer lock .Unlock ()
1424
- executionMap [ctx .GetTaskExecutionId ()] = executionMap [ctx .GetTaskExecutionId ()] + 1
1425
- if executionMap [ctx .GetTaskExecutionId ()] == 3 {
1424
+ executionMap [ctx .GetTaskExecutionID ()] = executionMap [ctx .GetTaskExecutionID ()] + 1
1425
+ if executionMap [ctx .GetTaskExecutionID ()] == 3 {
1426
1426
return nil , nil
1427
1427
}
1428
1428
return nil , errors .New ("activity failure" )
@@ -1435,7 +1435,7 @@ func Test_TaskExecutionId(t *testing.T) {
1435
1435
defer worker .Shutdown (ctx )
1436
1436
1437
1437
// Run the orchestration
1438
- id , err := client .ScheduleNewOrchestration (ctx , "TaskExecutionId " )
1438
+ id , err := client .ScheduleNewOrchestration (ctx , "TaskExecutionID " )
1439
1439
require .NoError (t , err )
1440
1440
1441
1441
metadata , err := client .WaitForOrchestrationCompletion (ctx , id )
@@ -1456,7 +1456,7 @@ func Test_TaskExecutionId(t *testing.T) {
1456
1456
t .Run ("SingleActivityWithNoRetry" , func (t * testing.T ) {
1457
1457
// Registration
1458
1458
r := task .NewTaskRegistry ()
1459
- require .NoError (t , r .AddOrchestratorN ("TaskExecutionId " , func (ctx * task.OrchestrationContext ) (any , error ) {
1459
+ require .NoError (t , r .AddOrchestratorN ("TaskExecutionID " , func (ctx * task.OrchestrationContext ) (any , error ) {
1460
1460
if err := ctx .CallActivity ("Activity" ).Await (nil ); err != nil {
1461
1461
return nil , err
1462
1462
}
@@ -1465,7 +1465,7 @@ func Test_TaskExecutionId(t *testing.T) {
1465
1465
1466
1466
var executionId string
1467
1467
require .NoError (t , r .AddActivityN ("Activity" , func (ctx task.ActivityContext ) (any , error ) {
1468
- executionId = ctx .GetTaskExecutionId ()
1468
+ executionId = ctx .GetTaskExecutionID ()
1469
1469
return nil , nil
1470
1470
}))
1471
1471
@@ -1476,7 +1476,7 @@ func Test_TaskExecutionId(t *testing.T) {
1476
1476
defer worker .Shutdown (ctx )
1477
1477
1478
1478
// Run the orchestration
1479
- id , err := client .ScheduleNewOrchestration (ctx , "TaskExecutionId " )
1479
+ id , err := client .ScheduleNewOrchestration (ctx , "TaskExecutionID " )
1480
1480
require .NoError (t , err )
1481
1481
1482
1482
metadata , err := client .WaitForOrchestrationCompletion (ctx , id )
0 commit comments