These are chat archives for Mashape/unirest-java

Jan 2016
Anders Sveen
Jan 25 2016 09:38
I'm trying to do parallel calls in my JUnit test with Unirest. I do this by calling request.asJsonAsync, adding the future to a List, then iterating over the list and calling future.get() on all of them. I increase an AtomicInteger inside the Callback, but it seems there are some timing issues. Anywone aware? Adding a sleep to my tests, the AtomicInteger comes out the right value.