We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08e5fc7 commit e30bde7Copy full SHA for e30bde7
src/test/java/dev/openfeature/sdk/ProviderRepositoryTest.java
@@ -311,14 +311,16 @@ void shouldForceShutdownWhenExecutorDoesNotTerminateWithinTimeout() throws Excep
311
FeatureProvider provider = createMockedProvider();
312
AtomicBoolean wasInterrupted = new AtomicBoolean(false);
313
doAnswer(invocation -> {
314
- try {
315
- Thread.sleep(TIMEOUT);
316
- } catch (InterruptedException e) {
317
- wasInterrupted.set(true);
318
- throw e;
319
- }
320
- return null;
321
- }).when(provider).shutdown();
+ try {
+ Thread.sleep(TIMEOUT);
+ } catch (InterruptedException e) {
+ wasInterrupted.set(true);
+ throw e;
+ }
+ return null;
+ })
322
+ .when(provider)
323
+ .shutdown();
324
325
setFeatureProvider(provider);
326
0 commit comments