Skip to content

Commit

Permalink
Disable all but failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
alyokaz committed Aug 30, 2023
1 parent 541b75d commit fc7f55f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/java/intergration/IntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,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 All @@ -51,7 +51,7 @@ public void canSeedAndReceiveFile() throws IOException {
server.shutDown();
}

@Test
//@Test
public void canDownloadFromTwoPeers() throws IOException {
File file = getFile(FILENAME);

Expand Down Expand Up @@ -83,7 +83,7 @@ public void canDownloadFromTwoPeers() throws IOException {

}

@Test
//@Test
public void canDownloadFromMultiplePeers() throws IOException {
final int minPort = 4444;
final int maxPort = minPort + 10;
Expand All @@ -109,7 +109,7 @@ public void canDownloadFromMultiplePeers() throws IOException {
nodes.forEach(AKTorrent::shutDown);
}

@Test
//@Test
public void getAvailableFiles() throws InterruptedException {
File testFileA = getFile(FILENAME);
File testFileB = getFile(FILENAME_2);
Expand Down Expand Up @@ -137,7 +137,7 @@ public void getAvailableFiles() throws InterruptedException {
node_B.shutDown();
}

@Test
////@Test
public void testDiscoverTransientPeers() throws IOException {
AKTorrent nodeA = new AKTorrent(NODE_A_PORT);
AKTorrent nodeB = new AKTorrent(NODE_B_PORT);
Expand Down Expand Up @@ -169,7 +169,7 @@ public void testDiscoverTransientPeers() throws IOException {
nodeC.shutDown();
}

@Test
//@Test
public void pingPeerWhenAdded() {
AKTorrent server = new AKTorrent(NODE_A_PORT);
server.startServer();
Expand Down

0 comments on commit fc7f55f

Please sign in to comment.