Skip to content

Commit d8f420a

Browse files
committed
fix: connect timeout stub
1 parent 7ca65c8 commit d8f420a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/test/java/dev/openfga/sdk/api/client/StreamingApiExecutorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ public void stream_appliesApiTokenAuthHeader() throws Exception {
365365
// Use a real ApiClient backed by the same mockHttpClient so applyAuthHeader runs for real.
366366
var authBuilder = mock(HttpClient.Builder.class);
367367
when(authBuilder.executor(any())).thenReturn(authBuilder);
368+
when(authBuilder.connectTimeout(any())).thenReturn(authBuilder);
368369
when(authBuilder.build()).thenReturn(mockHttpClient);
369370
ApiClient realApiClient = new ApiClient(authBuilder, new ObjectMapper());
370371

0 commit comments

Comments
 (0)