Commit 3549d074 authored by kezhenxu94's avatar kezhenxu94 Committed by 吴晟
Browse files

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
parent 532f4303
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
    }
}
+2 −1
Original line number Diff line number Diff line
@@ -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);
    }
}