Skip to content

Commit

Permalink
update exhaustiveFuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Feb 20, 2020
1 parent 07140d8 commit 302e43f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/test/java/com/esaulpaugh/headlong/rlp/RLPDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,14 @@ public void exhaustiveFuzz() throws InterruptedException {
tasks[i] = new ExhaustiveFuzzTask(new byte[] { (byte) i, 0, 0, 0 });
executorService.submit(tasks[i]);
}
long valid = 0, invalid = 0;
executorService.shutdown();
executorService.awaitTermination(12L, TimeUnit.MINUTES);
executorService.awaitTermination(35L, TimeUnit.MINUTES);
long valid = 0, invalid = 0;
for (ExhaustiveFuzzTask task : tasks) {
valid += task.valid;
invalid += task.invalid;
if(task != null) {
valid += task.valid;
invalid += task.invalid;
}
}
System.out.println(valid + " / " + (valid + invalid) + " (" + invalid + " invalid)");
}
Expand Down

0 comments on commit 302e43f

Please sign in to comment.