Merge pull request #21701 from yashykt/macosreduce

Reduce testing load on MacOS systems
pull/21711/head
Yash Tibrewal 5 years ago committed by GitHub
commit c79b29cb9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      test/core/surface/concurrent_connectivity_test.cc
  2. 6
      test/core/surface/sequential_connectivity_test.cc

@ -40,7 +40,14 @@
#include "test/core/util/port.h"
#include "test/core/util/test_config.h"
/* TODO(yashykt): When our macos testing infrastructure becomes good enough, we
* wouldn't need to reduce the number of threads on MacOS */
#ifdef __APPLE__
#define NUM_THREADS 10
#else
#define NUM_THREADS 100
#endif /* __APPLE */
#define NUM_OUTER_LOOPS 10
#define NUM_INNER_LOOPS 10
#define DELAY_MILLIS 10

@ -35,7 +35,13 @@ typedef struct test_fixture {
grpc_channel* (*create_channel)(const char* addr);
} test_fixture;
/* TODO(yashykt): When our macos testing infrastructure becomes good enough, we
* wouldn't need to reduce the number of connections on MacOS */
#ifdef __APPLE__
#define NUM_CONNECTIONS 100
#else
#define NUM_CONNECTIONS 1000
#endif /* __APPLE__ */
typedef struct {
grpc_server* server;

Loading…
Cancel
Save