Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit a2ad22f

Browse files
committed
Fix travis being picky
1 parent 06e1044 commit a2ad22f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ src/LICENSE.txt
1010
.gradle
1111
# Maven
1212
target
13-
/test/
14-
/src/test/resources/file/
13+
/test/

src/test/java/handlers/FileHandlerTests.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
import com.kttdevelopment.simplehttpserver.SimpleHttpServer;
44
import com.kttdevelopment.simplehttpserver.handler.*;
5-
import org.junit.*;
5+
import org.junit.Assert;
6+
import org.junit.Test;
67

78
import java.io.File;
89
import java.io.IOException;
@@ -15,6 +16,7 @@
1516

1617
public class FileHandlerTests {
1718

19+
@SuppressWarnings("ResultOfMethodCallIgnored")
1820
@Test
1921
public void addFileTests() throws IOException{
2022
final int port = 25001;
@@ -84,6 +86,8 @@ public void addFileTests() throws IOException{
8486
}
8587
});
8688

89+
files.forEach((file, loadingOption) -> file.delete());
90+
8791
server.stop();
8892
}
8993

0 commit comments

Comments
 (0)