We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2df92f5 commit 9096e32Copy full SHA for 9096e32
internal/internal_poller_autoscaler.go
@@ -83,11 +83,10 @@ func newPollerScaler(
83
options pollerAutoScalerOptions,
84
logger *zap.Logger,
85
hooks ...func()) *pollerAutoScaler {
86
- ctx, cancel := context.WithCancel(context.Background())
87
if !options.Enabled {
88
return nil
89
}
90
-
+ ctx, cancel := context.WithCancel(context.Background())
91
return &pollerAutoScaler{
92
isDryRun: options.DryRun,
93
cooldownTime: options.Cooldown,
internal/worker_test.go
@@ -26,6 +26,11 @@ import (
26
"github.com/stretchr/testify/assert"
27
)
28
29
+func TestMain(m *testing.M) {
30
+ EnableVerboseLogging(true)
31
+ m.Run()
32
+}
33
+
34
func Test_NewWorker(t *testing.T) {
35
tests := []struct {
36
name string
0 commit comments