File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/test/java/io/ipfs/api Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 71
71
<artifactId >maven-compiler-plugin</artifactId >
72
72
<version >3.8.0</version >
73
73
<configuration >
74
- <release >11</release >
75
- <source >11</source >
76
- <target >11</target >
74
+ <source >1.8</source >
75
+ <target >1.8</target >
77
76
</configuration >
78
77
</plugin >
79
78
<plugin >
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public void directoryTest() throws IOException {
141
141
List <MerkleNode > lsResult = ipfs .ls (addResult .hash );
142
142
if (lsResult .size () != 2 )
143
143
throw new IllegalStateException ("Incorrect number of objects in ls!" );
144
- if (! lsResult .stream ().map (x -> x .name .get ()).collect (Collectors .toSet ()).equals (Set . of (subdirName , fileName )))
144
+ if (! lsResult .stream ().map (x -> x .name .get ()).collect (Collectors .toSet ()).equals (new HashSet <>( Arrays . asList (subdirName , fileName ) )))
145
145
throw new IllegalStateException ("Dir not returned in ls!" );
146
146
byte [] catResult = ipfs .cat (addResult .hash , "/" + fileName );
147
147
if (! Arrays .equals (catResult , fileContents ))
You can’t perform that action at this time.
0 commit comments