From 2d3313e643b0ce4db8712bbf5d0715ed984a7edc Mon Sep 17 00:00:00 2001 From: Brandon Simmons Date: Wed, 18 Mar 2020 13:15:41 -0400 Subject: [PATCH] Try again to fix flaky TestEventFlood test (#4088) Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com> --- .circleci/config.yml | 2 ++ scripts/dev.sh | 3 +++ 2 files changed, 5 insertions(+) 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