Skip to content

Commit

Permalink
modify pizza-sender for timeout testing, adding pizzapper secodns
Browse files Browse the repository at this point in the history
  • Loading branch information
Woj-Teh committed Aug 29, 2023
1 parent f488712 commit 1b27473
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ private List<Pizza> createPizzas() {
@Autowired
private RestTemplate restTemplate;

@Value("${pizzas.per.second.default:1000}")
@Value("${pizzas.per.second.default:10}")
private int pizzasPerSecondDefault;

@Value("${sending.duration.seconds.default:300}")
@Value("${sending.duration.seconds.default:30}")
private int sendingDurationSecondsDefault;

@EventListener(ApplicationReadyEvent.class)
public void onApplicationEvent() {
sendPizzas(null, null);
sendPizzas(20, 300);
}

@GetMapping("/send")
Expand Down

0 comments on commit 1b27473

Please sign in to comment.