Skip to content

Commit

Permalink
retest
Browse files Browse the repository at this point in the history
  • Loading branch information
zt9788 committed Oct 7, 2023
1 parent 95ca7d0 commit 26f4677
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ public void mutilTest() throws InterruptedException{
}

executorService.submit(() -> {
for (int i = 0; i < 20480; i+=2) {
for (int i = 0; i < 1000; i+=2) {
cache.putIfAbsent("K" + i, "V" + i);
}
});
executorService.submit(() -> {
for (int i = 1; i < 20480; i+=2) {
for (int i = 1; i < 1000; i+=2) {
cache.remove("K" + i);
}
});
executorService.submit(() -> {
for (int i = 0; i < 20480; i++) {
for (int i = 0; i < 1000; i++) {
Object value = cache.get("K" + i);
if(!Objects.isNull(value))
Assert.assertEquals(("V"+i),value);
Expand Down

0 comments on commit 26f4677

Please sign in to comment.