pull/36088/head
Vignesh Babu 12 months ago
parent 11324b5ce7
commit e62a8f7ae7
  1. 7
      test/cpp/end2end/resource_quota_end2end_stress_test.cc

@ -172,14 +172,15 @@ class End2EndConnectionQuotaTest : public ::testing::TestWithParam<int> {
args.SetInt(GRPC_ARG_HTTP2_MIN_SENT_PING_INTERVAL_WITHOUT_DATA_MS, 15000);
args.SetInt(GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS, 1);
return EchoTestService::NewStub(CreateCustomChannel(
absl::StrCat("ipv6:[::1]:", port_),
grpc::InsecureChannelCredentials(), args));
return EchoTestService::NewStub(
CreateCustomChannel(absl::StrCat("ipv6:[::1]:", port_),
grpc::InsecureChannelCredentials(), args));
}
void TestExceedingConnectionQuota() {
const int kNumConnections = 2 * GetParam();
std::vector<std::unique_ptr<EchoTestService::Stub>> stubs;
stubs.reserve(kNumConnections);
for (int i = 0; i < kNumConnections; i++) {
stubs.push_back(CreateGrpcChannelStub());
}

Loading…
Cancel
Save