Skip to content

Commit 021a882

Browse files
committed
Merge pull request #6 from matshenricson/master
Added an assert for version 0.4.0-dev, plus .gitignore file
2 parents f7e8cf6 + 56b7b1f commit 021a882

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.class
2+
*.log
3+
dist/*
4+
target/
5+
6+
# Scala-IDE specific
7+
.idea/*
8+
api.iml
9+

src/test/java/org/ipfs/api/Test.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import java.util.Optional;
88
import java.util.Random;
99

10+
import static org.junit.Assert.assertTrue;
11+
1012
public class Test {
1113

1214
IPFS ipfs = new IPFS(new MultiAddress("/ip4/127.0.0.1/tcp/5001"));
@@ -346,6 +348,7 @@ public void diagTest() {
346348
public void toolsTest() {
347349
try {
348350
String version = ipfs.version();
351+
assertTrue(version.equals("0.4.0-dev")); // No longer works with any 0.3 version
349352
Map commands = ipfs.commands();
350353
} catch (IOException e) {
351354
throw new RuntimeException(e);

0 commit comments

Comments
 (0)