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 7171 <artifactId >maven-compiler-plugin</artifactId >
7272 <version >3.8.0</version >
7373 <configuration >
74- <release >11</release >
75- <source >11</source >
76- <target >11</target >
74+ <source >1.8</source >
75+ <target >1.8</target >
7776 </configuration >
7877 </plugin >
7978 <plugin >
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public void directoryTest() throws IOException {
141141 List <MerkleNode > lsResult = ipfs .ls (addResult .hash );
142142 if (lsResult .size () != 2 )
143143 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 ) )))
145145 throw new IllegalStateException ("Dir not returned in ls!" );
146146 byte [] catResult = ipfs .cat (addResult .hash , "/" + fileName );
147147 if (! Arrays .equals (catResult , fileContents ))
You can’t perform that action at this time.
0 commit comments