Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static PollerOptions maybeEnrollInPollerAutoscaling(
&& namespaceCapabilities.isPollerAutoscalingAutoEnroll()
&& !(options.getPollerBehavior() instanceof PollerBehaviorAutoscaling)) {
return PollerOptions.newBuilder(options)
.setPollerBehavior(new PollerBehaviorAutoscaling())
.setPollerBehavior(new PollerBehaviorAutoscaling(5, 100, 5))
.build();
}
return options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public void eligibleDefaultIsEnrolledWhenCapabilityAdvertised() {
assertTrue(
"defaulted poller type should switch to autoscaling",
resolved.getPollerBehavior() instanceof PollerBehaviorAutoscaling);
// The enrolled behavior uses the PollerBehaviorAutoscaling defaults.
assertEquals(new PollerBehaviorAutoscaling(), resolved.getPollerBehavior());
// The enrolled behavior uses the explicit auto-enroll min/max/initial values.
assertEquals(new PollerBehaviorAutoscaling(5, 100, 5), resolved.getPollerBehavior());
}

@Test
Expand Down
Loading