Skip to content

Commit

Permalink
fix(portal): fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
youngzil committed Nov 23, 2024
1 parent 6011aeb commit 8463974
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ void notAllowCreateApplication() {

ConsumerToken consumerToken = new ConsumerToken();
consumerToken.setToken(token);
consumerToken.setRateLimit(0);
when(consumerTokenRepository.findByConsumerId(eq(consumerId)))
.thenReturn(consumerToken);
}
Expand All @@ -276,6 +277,7 @@ void allowCreateApplication() {

ConsumerToken consumerToken = new ConsumerToken();
consumerToken.setToken(token);
consumerToken.setRateLimit(0);
when(consumerTokenRepository.findByConsumerId(eq(consumerId)))
.thenReturn(consumerToken);
}
Expand Down

0 comments on commit 8463974

Please sign in to comment.