Skip to content

Commit

Permalink
Fixed Initialization Race Condition in DisposeHelperTest (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
nixon124 authored Nov 29, 2023
1 parent 49899a8 commit a812cb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/emissary/util/DisposeHelperTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import emissary.core.BaseDataObject;
import emissary.core.IBaseDataObject;
import emissary.test.core.junit5.UnitTest;

import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
Expand All @@ -20,7 +21,7 @@
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

class DisposeHelperTest {
class DisposeHelperTest extends UnitTest {

private static final Runnable FIRST = () -> LoggerFactory.getLogger("DisposeHelperRunnable").warn("DisposeHelperTestFirstRunnable");
private static final Runnable SECOND = () -> LoggerFactory.getLogger("DisposeHelperRunnable").warn("DisposeHelperTestSecondRunnable");
Expand Down

0 comments on commit a812cb0

Please sign in to comment.