Reduce testing load on MacOS systems

pull/21701/head
Yash Tibrewal 5 years ago
parent 4466a4ce61
commit d66bb39b12
  1. 6
      test/core/surface/concurrent_connectivity_test.cc
  2. 5
      test/core/surface/sequential_connectivity_test.cc

@ -40,7 +40,13 @@
#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,12 @@ 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