Skip to content

Commit

Permalink
[56] add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
mirage22 committed Oct 3, 2024
1 parent aec72d8 commit 87d3a2e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;

import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;
import static org.junit.jupiter.api.Assertions.*;

/**
*
* @author Marcus Hirt (@hirt)
* @author Miroslav Wengner (@miragemiko)
*/
// TODO : remove thread sleep
public class MessageServerTest {
private static final String CONST_MYUUID = "myuuid";
private static final String PROPERTY_SERVER_NAME = "ServerName";
Expand Down Expand Up @@ -89,7 +88,8 @@ void testClientServerMessagePassing() throws Exception {
client.sendMessage("test", message);
}

messageLatch.await(2, TimeUnit.SECONDS);
var receivedMessages =messageLatch.await(2, TimeUnit.SECONDS);
assertTrue(receivedMessages);
assertEquals(testMessage.size(), messages.size());
assertArrayEquals(testMessage.toArray(), messages.toArray());
}
Expand Down

0 comments on commit 87d3a2e

Please sign in to comment.