Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public void receiveTimeout_closesConnection() throws Exception {
verify(mockRequestStream).send(initialRequest());

// No subsequent stream responses should close the stream.
assertThat(connectionClosed.await(5, SECONDS)).isTrue();
assertThat(connectionClosed.await(30, SECONDS)).isTrue();

verify(mockRequestStream).closeSendWithError(argThat(new ApiExceptionMatcher(Code.ABORTED)));
verify(mockOutputStream).onError(argThat(new ApiExceptionMatcher(Code.ABORTED)));
Expand All @@ -271,7 +271,7 @@ public void initializationTimeout_closesConnection() throws Exception {
new ConnectedCommitterImpl(
streamFactory, mockOutputStream, initialRequest(), Duration.ofMillis(100));

assertThat(connectionClosed.await(5, SECONDS)).isTrue();
assertThat(connectionClosed.await(30, SECONDS)).isTrue();

verify(mockRequestStream).send(initialRequest());
verify(mockRequestStream).closeSendWithError(argThat(new ApiExceptionMatcher(Code.ABORTED)));
Expand Down