提交 3549d074 编写于 作者: K kezhenxu94 提交者: wu-sheng

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
上级 532f4303
......@@ -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);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册