[Test] Mitigate `AltsConcurrentConnectivityTest` msan timeout with reduced concurrent level (#37773)

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #37773

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37773 from yijiem:alts-concurrent-connect-timeout 99e371f3ac
PiperOrigin-RevId: 676895049
pull/35985/head
Yijie Ma 2 months ago committed by Copybara-Service
parent c6c461bc0e
commit 23715aca4c
  1. 4
      test/core/tsi/alts/handshaker/alts_concurrent_connectivity_test.cc

@ -57,6 +57,7 @@
#include "src/core/lib/slice/slice_string_helpers.h" #include "src/core/lib/slice/slice_string_helpers.h"
#include "src/core/util/useful.h" #include "src/core/util/useful.h"
#include "test/core/end2end/cq_verifier.h" #include "test/core/end2end/cq_verifier.h"
#include "test/core/test_util/build.h"
#include "test/core/test_util/fake_udp_and_tcp_server.h" #include "test/core/test_util/fake_udp_and_tcp_server.h"
#include "test/core/test_util/port.h" #include "test/core/test_util/port.h"
#include "test/core/test_util/test_config.h" #include "test/core/test_util/test_config.h"
@ -293,6 +294,9 @@ TEST(AltsConcurrentConnectivityTest, TestConcurrentClientServerHandshakes) {
{ {
TestServer test_server; TestServer test_server;
size_t num_concurrent_connects = 50; size_t num_concurrent_connects = 50;
if (BuiltUnderMsan()) {
num_concurrent_connects = 25;
}
std::vector<std::unique_ptr<ConnectLoopRunner>> connect_loop_runners; std::vector<std::unique_ptr<ConnectLoopRunner>> connect_loop_runners;
VLOG(2) << "start performing concurrent expected-to-succeed connects"; VLOG(2) << "start performing concurrent expected-to-succeed connects";
for (size_t i = 0; i < num_concurrent_connects; i++) { for (size_t i = 0; i < num_concurrent_connects; i++) {

Loading…
Cancel
Save