@@ -196,7 +196,7 @@ func testActivityMultipleArgsWithStruct(ctx context.Context, i int, s testActivi
196
196
}
197
197
198
198
func (s * internalWorkerTestSuite ) TestCreateWorker () {
199
- worker := createWorkerWithThrottle (s .T (), s .service , float64 ( 500.0 ) , WorkerOptions {})
199
+ worker := createWorkerWithThrottle (s .T (), s .service , 500 , WorkerOptions {})
200
200
err := worker .Start ()
201
201
require .NoError (s .T (), err )
202
202
time .Sleep (time .Millisecond * 200 )
@@ -356,15 +356,15 @@ func createWorker(
356
356
t * testing.T ,
357
357
service * workflowservicetest.MockClient ,
358
358
) * aggregatedWorker {
359
- return createWorkerWithThrottle (t , service , float64 ( 0.0 ) , WorkerOptions {})
359
+ return createWorkerWithThrottle (t , service , 0 , WorkerOptions {})
360
360
}
361
361
362
362
func createShadowWorker (
363
363
t * testing.T ,
364
364
service * workflowservicetest.MockClient ,
365
365
shadowOptions * ShadowOptions ,
366
366
) * aggregatedWorker {
367
- return createWorkerWithThrottle (t , service , float64 ( 0.0 ) , WorkerOptions {
367
+ return createWorkerWithThrottle (t , service , 0 , WorkerOptions {
368
368
EnableShadowWorker : true ,
369
369
ShadowOptions : * shadowOptions ,
370
370
})
@@ -423,28 +423,28 @@ func createWorkerWithDataConverter(
423
423
t * testing.T ,
424
424
service * workflowservicetest.MockClient ,
425
425
) * aggregatedWorker {
426
- return createWorkerWithThrottle (t , service , float64 ( 0.0 ) , WorkerOptions {DataConverter : newTestDataConverter ()})
426
+ return createWorkerWithThrottle (t , service , 0 , WorkerOptions {DataConverter : newTestDataConverter ()})
427
427
}
428
428
429
429
func createWorkerWithAutoscaler (
430
430
t * testing.T ,
431
431
service * workflowservicetest.MockClient ,
432
432
) * aggregatedWorker {
433
- return createWorkerWithThrottle (t , service , float64 ( 0 ) , WorkerOptions {FeatureFlags : FeatureFlags {PollerAutoScalerEnabled : true }})
433
+ return createWorkerWithThrottle (t , service , 0 , WorkerOptions {FeatureFlags : FeatureFlags {PollerAutoScalerEnabled : true }})
434
434
}
435
435
436
436
func createWorkerWithStrictNonDeterminismOption (
437
437
t * testing.T ,
438
438
service * workflowservicetest.MockClient ,
439
439
) * aggregatedWorker {
440
- return createWorkerWithThrottle (t , service , float64 ( 0 ) , WorkerOptions {WorkerBugPorts : WorkerBugPorts {EnableStrictNonDeterminismCheck : true }})
440
+ return createWorkerWithThrottle (t , service , 0 , WorkerOptions {WorkerBugPorts : WorkerBugPorts {EnableStrictNonDeterminismCheck : true }})
441
441
}
442
442
443
443
func createWorkerWithHost (
444
444
t * testing.T ,
445
445
service * workflowservicetest.MockClient ,
446
446
) * aggregatedWorker {
447
- return createWorkerWithThrottle (t , service , float64 ( 0 ) , WorkerOptions {Host : "test_host" })
447
+ return createWorkerWithThrottle (t , service , 0 , WorkerOptions {Host : "test_host" })
448
448
}
449
449
450
450
func (s * internalWorkerTestSuite ) testCompleteActivityHelper (opt * ClientOptions ) {
0 commit comments