Skip to content

Commit 83e76d2

Browse files
committed
maybe fix autoscaler tests
1 parent 9ec9816 commit 83e76d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/internal_worker_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,10 @@ func createWorkerWithThrottle(
413413
workerOptions.WorkerActivitiesPerSecond = 20
414414
workerOptions.TaskListActivitiesPerSecond = activitiesPerSecond
415415
workerOptions.Logger = testlogger.NewZap(t)
416+
if workerOptions.FeatureFlags.PollerAutoScalerEnabled {
417+
// Autoscaller can cause concurrent writes in the test logger, so it is unsafe to use.
418+
workerOptions.Logger = zap.NewNop()
419+
}
416420
workerOptions.EnableSessionWorker = true
417421

418422
// Start Worker.

0 commit comments

Comments
 (0)