Skip to content

Commit

Permalink
qulice
Browse files Browse the repository at this point in the history
  • Loading branch information
l3r8yJ committed Dec 1, 2022
1 parent b129de7 commit f504d8e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/test/java/com/yegor256/tojos/MnSynchronizedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@
package com.yegor256.tojos;

import java.nio.file.Path;
import java.util.*;
import java.util.concurrent.*;
import java.util.logging.Logger;

import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -89,7 +92,7 @@ final void writesConcurrently() throws InterruptedException {
}
this.latch.countDown();
this.executor.shutdown();
assert this.executor.awaitTermination(1, TimeUnit.MINUTES);
assert this.executor.awaitTermination(1L, TimeUnit.MINUTES);
MatcherAssert.assertThat(
this.shared.read().size(),
Matchers.equalTo(
Expand Down

0 comments on commit f504d8e

Please sign in to comment.