Skip to content

Commit

Permalink
adjust timeout to 7 seconds and make AbstractInteropTest.operationTim…
Browse files Browse the repository at this point in the history
…eoutMillis match RetryTest.assertRpcStartedRecorded.
  • Loading branch information
larry-safran committed Jan 30, 2024
1 parent 470955e commit 0a03849
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2212,7 +2212,7 @@ protected void assertX500SubjectDn(String tlsInfo) {
}

protected int operationTimeoutMillis() {
return 5000;
return 7000;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private void assertInboundWireSizeRecorded(long length) throws Exception {

private void assertRpcStatusRecorded(
Status.Code code, long roundtripLatencyMs, long outboundMessages) throws Exception {
MetricsRecord record = clientStatsRecorder.pollRecord(10, SECONDS);
MetricsRecord record = clientStatsRecorder.pollRecord(7, SECONDS);
TagValue statusTag = record.tags.get(RpcMeasureConstants.GRPC_CLIENT_STATUS);
assertThat(statusTag.asString()).isEqualTo(code.toString());
assertThat(record.getMetricAsLongOrFail(DeprecatedCensusConstants.RPC_CLIENT_FINISHED_COUNT))
Expand Down

0 comments on commit 0a03849

Please sign in to comment.