Skip to content

Commit f4a5c6e

Browse files
committed
ConcurrentModificationException when querying /v3/api-docs/{group} concurrently for different groups. Fixes #1641.
1 parent 5d68d93 commit f4a5c6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

springdoc-openapi-common/src/test/java/org/springdoc/api/AbstractOpenApiResourceTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public void setUp() {
119119
ReflectionTestUtils.setField(openAPIService, "serverBaseUrlCustomizers", Optional.empty());
120120

121121
when(openAPIService.getContext()).thenReturn(context);
122+
when(openAPIService.build(any())).thenReturn(openAPI);
122123

123124
when(openAPIBuilderObjectFactory.getObject()).thenReturn(openAPIService);
124125
when(springDocProviders.jsonMapper()).thenReturn(Json.mapper());

0 commit comments

Comments
 (0)