Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhoon committed Feb 20, 2025
1 parent 9c357a6 commit 07eb668
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,13 @@ private static RampingUpLoadBalancer<Endpoint> setInitialEndpoints(int numberOfS
.rampingUpTaskWindow(Duration.ofNanos(rampingUpTaskWindowNanos))
.ticker(ticker::get)
.totalSteps(numberOfSteps)
.timestampFunction(EndpointAttributeKeys::createdAtNanos)
.timestampFunction(endpoint -> {
if (EndpointAttributeKeys.hasCreatedAtNanos(endpoint)) {
return EndpointAttributeKeys.createdAtNanos(endpoint);
} else {
return null;
}
})
.executor(new ImmediateExecutor())
.build();

Expand Down

0 comments on commit 07eb668

Please sign in to comment.