Skip to content

Commit

Permalink
test(graphql): slightly raise GQL perf test time limit PE-4335
Browse files Browse the repository at this point in the history
It was a bit too sensitive to be used in the build. I'll likely adjust
it to have limits on individual queries instead of in aggregate in the
future.
  • Loading branch information
djwhitt committed Aug 4, 2023
1 parent 879c39b commit c8c316b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/perf/gql-perf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

GRAPHQL_URL=${GRAPHQL_URL:-http://localhost:3000/graphql}
#GRAPHQL_URL=${GRAPHQL_URL:-http://localhost:3000/graphql}
#GRAPHQL_URL=${GRAPHQL_URL:-http://localhost:4000/graphql}
#GRAPHQL_URL=${GRAPHQL_URL:-https://arweave.net/graphql}
#GRAPHQL_URL=${GRAPHQL_URL:-https://arweave-search.goldsky.com/graphql}
Expand Down Expand Up @@ -126,7 +126,7 @@ end_time=$(date +%s%N)
runtime=$((($end_time - $start_time) / 1000000))
echo "runtime: $runtime ms"

if [ $runtime -gt 15000 ]; then
echo "FAIL: runtime exceeded 15 seconds"
if [ $runtime -gt 45000 ]; then
echo "FAIL: runtime exceeded 45 seconds"
exit 1
fi

0 comments on commit c8c316b

Please sign in to comment.