diff --git a/.circleci/config.yml b/.circleci/config.yml index 9e5c3bd27b7..2870e53f4fb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -101,6 +101,8 @@ refs: # Setting default number of threads to 2 # since circleci allocates 2 cpus per test container GHCRTS: -N2 + # Until we can use a real webserver for TestEventFlood, limit concurrency: + HASURA_GRAPHQL_EVENTS_HTTP_POOL_SIZE: 8 HASURA_GRAPHQL_DATABASE_URL: postgresql://gql_test:@localhost:5432/gql_test HASURA_GRAPHQL_DATABASE_URL_2: postgresql://gql_test:@localhost:5432/gql_test2 GRAPHQL_ENGINE: /build/_server_output/graphql-engine diff --git a/scripts/dev.sh b/scripts/dev.sh index 9e1157f24d2..85de9b91c9c 100755 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -320,6 +320,9 @@ elif [ "$MODE" = "test" ]; then ######################################## cd "$PROJECT_ROOT/server" + # Until we can use a real webserver for TestEventFlood, limit concurrency + export HASURA_GRAPHQL_EVENTS_HTTP_POOL_SIZE=8 + # We'll get an hpc error if these exist; they will be deleted below too: rm -f graphql-engine-tests.tix graphql-engine.tix graphql-engine-combined.tix