mirror of https://github.com/grpc/grpc-java.git
Relax some timeouts that have been flaky for the automated CI testing. (#10858)
* Relax some timeouts that have been flaky for the automated CI testing.
This commit is contained in:
parent
ae5fdd5faa
commit
ac428c14fd
|
|
@ -220,7 +220,7 @@ public abstract class AbstractInteropTest {
|
||||||
* Constructor for tests.
|
* Constructor for tests.
|
||||||
*/
|
*/
|
||||||
protected AbstractInteropTest() {
|
protected AbstractInteropTest() {
|
||||||
TestRule timeout = Timeout.seconds(60);
|
TestRule timeout = Timeout.seconds(90);
|
||||||
try {
|
try {
|
||||||
timeout = new DisableOnDebug(timeout);
|
timeout = new DisableOnDebug(timeout);
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
|
|
@ -2212,7 +2212,7 @@ public abstract class AbstractInteropTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected int operationTimeoutMillis() {
|
protected int operationTimeoutMillis() {
|
||||||
return 5000;
|
return 7000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -244,7 +244,7 @@ public class RetryTest {
|
||||||
|
|
||||||
private void assertRpcStatusRecorded(
|
private void assertRpcStatusRecorded(
|
||||||
Status.Code code, long roundtripLatencyMs, long outboundMessages) throws Exception {
|
Status.Code code, long roundtripLatencyMs, long outboundMessages) throws Exception {
|
||||||
MetricsRecord record = clientStatsRecorder.pollRecord(5, SECONDS);
|
MetricsRecord record = clientStatsRecorder.pollRecord(7, SECONDS);
|
||||||
TagValue statusTag = record.tags.get(RpcMeasureConstants.GRPC_CLIENT_STATUS);
|
TagValue statusTag = record.tags.get(RpcMeasureConstants.GRPC_CLIENT_STATUS);
|
||||||
assertThat(statusTag.asString()).isEqualTo(code.toString());
|
assertThat(statusTag.asString()).isEqualTo(code.toString());
|
||||||
assertThat(record.getMetricAsLongOrFail(DeprecatedCensusConstants.RPC_CLIENT_FINISHED_COUNT))
|
assertThat(record.getMetricAsLongOrFail(DeprecatedCensusConstants.RPC_CLIENT_FINISHED_COUNT))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue