Skip to content

Commit

Permalink
Make failing test wait for 2 secs
Browse files Browse the repository at this point in the history
  • Loading branch information
alyokaz committed Aug 31, 2023
1 parent 5d6b05a commit 6230955
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/intergration/IntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class IntegrationTest {

private static final String FILENAME_2 = "test_file_2.mp4";

//@Test
@Test
public void canSeedAndReceiveFile() throws IOException {
File file = getFile(FILENAME);
AKTorrent server = new AKTorrent(NODE_A_PORT);
Expand Down Expand Up @@ -181,7 +181,8 @@ public void pingPeerWhenAdded() {
}

@Test
public void pingByMultipleNodes() {
public void pingByMultipleNodes() throws InterruptedException {
Thread.sleep(2000);
AKTorrent server = new AKTorrent(NODE_A_PORT);
server.startServer();

Expand Down

0 comments on commit 6230955

Please sign in to comment.