Skip to content

Commit

Permalink
maybe fix autoscaler tests
Browse files Browse the repository at this point in the history
  • Loading branch information
3vilhamster committed Nov 8, 2024
1 parent 9ec9816 commit 83e76d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/internal_worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,10 @@ func createWorkerWithThrottle(
workerOptions.WorkerActivitiesPerSecond = 20
workerOptions.TaskListActivitiesPerSecond = activitiesPerSecond
workerOptions.Logger = testlogger.NewZap(t)
if workerOptions.FeatureFlags.PollerAutoScalerEnabled {
// Autoscaller can cause concurrent writes in the test logger, so it is unsafe to use.
workerOptions.Logger = zap.NewNop()
}
workerOptions.EnableSessionWorker = true

// Start Worker.
Expand Down

0 comments on commit 83e76d2

Please sign in to comment.