Skip to content

Commit 9d22159

Browse files
committed
chore: fix race with events tests
Signed-off-by: Todd Baert <[email protected]>
1 parent 4972291 commit 9d22159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main/java/dev/openfeature/sdk/EventSupport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class EventSupport {
2323
// we use a v4 uuid as a "placeholder" for anonymous clients, since
2424
// ConcurrentHashMap doesn't support nulls
2525
private static final String defaultClientUuid = UUID.randomUUID().toString();
26-
private static final ExecutorService taskExecutor = Executors.newCachedThreadPool();
26+
private final ExecutorService taskExecutor = Executors.newCachedThreadPool();
2727
private final Map<String, HandlerStore> handlerStores = new ConcurrentHashMap<>();
2828
private final HandlerStore globalHandlerStore = new HandlerStore();
2929

0 commit comments

Comments
 (0)