Increase test service latency to help it to be counted (#3211)
The current latency of the test service is too slow, causing it's not counted and the query result is 0, this patch increases the latency intentionally by sleeping 1 second
This commit is contained in:
parent
532f430369
commit
3549d074b0
|
|
@ -42,7 +42,8 @@ public class TestController {
|
|||
}
|
||||
|
||||
@PostMapping("/users")
|
||||
public User createAuthor(@RequestBody final User user) {
|
||||
public User createAuthor(@RequestBody final User user) throws InterruptedException {
|
||||
Thread.sleep(1000L);
|
||||
return userRepo.save(user);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@ public class TestController {
|
|||
}
|
||||
|
||||
@PostMapping("/users")
|
||||
public User createAuthor(@RequestBody final User user) {
|
||||
public User createAuthor(@RequestBody final User user) throws InterruptedException {
|
||||
Thread.sleep(1000L);
|
||||
return userRepo.save(user);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue