44import com .vmlens .api .Runner ;
55import dev .openfeature .sdk .exceptions .FatalError ;
66import dev .openfeature .sdk .exceptions .GeneralError ;
7-
87import java .util .concurrent .atomic .AtomicLong ;
9-
108import org .junit .jupiter .api .Assertions ;
119import org .junit .jupiter .api .BeforeEach ;
1210import org .junit .jupiter .api .Test ;
@@ -123,8 +121,7 @@ void callingShutdown_wakesUpWaitingThreadWithException() {
123121 Runner .runParallel (
124122 () -> {
125123 Assertions .assertThrows (
126- GeneralError .class ,
127- () -> flagdProviderSyncResources .waitForInitialization (10000 ));
124+ GeneralError .class , () -> flagdProviderSyncResources .waitForInitialization (10000 ));
128125 endTime .set (System .currentTimeMillis ());
129126 Assertions .assertFalse (flagdProviderSyncResources .isInitialized ());
130127 Assertions .assertFalse (flagdProviderSyncResources .isFatal ());
@@ -147,7 +144,7 @@ void callingShutdown_wakesUpWaitingThreadWithException() {
147144 @ Test
148145 void callingFatalError_wakesUpWaitingThreadWithException () {
149146 try (var interleavings =
150- new AllInterleavings ("calling setFatal(true) wakes up waiting thread with exception" )) {
147+ new AllInterleavings ("calling setFatal(true) wakes up waiting thread with exception" )) {
151148 while (interleavings .hasNext ()) {
152149 final var startTime = new AtomicLong ();
153150 final var endTime = new AtomicLong ();
@@ -202,7 +199,7 @@ void concurrentInitializeAndShutdownShutsDownWork() {
202199 @ Test
203200 void concurrentInitializeAndShutdownAndSetFatalShutsDownWork () {
204201 try (var interleavings =
205- new AllInterleavings ("concurrent initialize() and shutdown() and fatal() calls work" )) {
202+ new AllInterleavings ("concurrent initialize() and shutdown() and fatal() calls work" )) {
206203 while (interleavings .hasNext ()) {
207204 Runner .runParallel (
208205 () -> flagdProviderSyncResources .initialize (),
0 commit comments