Skip to content

Commit

Permalink
test: try and improve flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Oct 29, 2024
1 parent 3b32bfe commit 8b6adb4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ jobs:
- run: echo "listen_addresses='*'" >> /etc/postgresql/9.5/main/postgresql.conf
- run: sed -i 's/^#*\s*max_connections\s*=.*/max_connections = 10000/' /etc/postgresql/9.5/main/postgresql.conf
- run: (cd .circleci/ && ./doTests.sh << parameters.plugin >>)
- run:
command: cp ~/supertokens-root/supertokens-core/build/test-results/test/*.xml ~/junit/
when: always
- when:
condition:
not:
equal: [ << parameters.plugin >>, "sqlite" ]
steps:
- run: cp ~/supertokens-root/supertokens-<< parameters.plugin >>-plugin/build/test-results/test/*.xml ~/junit/
- store_test_results:
path: ~/junit
- slack/status
Expand Down
11 changes: 11 additions & 0 deletions .circleci/doTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ then
exit 1
fi

mkdir -p ~/junit

someTestsRan=false
while read -u 10 line
do
Expand Down Expand Up @@ -198,6 +200,15 @@ do
echo ""

cd ../

if [ -d ~/junit ]
cp ~/supertokens-root/supertokens-core/build/test-results/test/*.xml ~/junit/

if [[ $pluginToTest -ne "sqlite" ]]
cp "~/supertokens-root/supertokens-$pluginToTest-plugin/build/test-results/test/*.xml" ~/junit/
fi
fi

rm -rf supertokens-root

if [[ $currPinnedDb == "sqlite" ]]
Expand Down

0 comments on commit 8b6adb4

Please sign in to comment.