From f859e3bac82bcdd85479963d9112e37dd75bbf12 Mon Sep 17 00:00:00 2001
From: Mihaly Lengyel <mihaly@lengyel.tech>
Date: Tue, 29 Oct 2024 13:52:13 +0100
Subject: [PATCH] test: try and improve flaky tests

---
 .circleci/doTests.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.circleci/doTests.sh b/.circleci/doTests.sh
index 211fa4ff4..b01e14bde 100755
--- a/.circleci/doTests.sh
+++ b/.circleci/doTests.sh
@@ -174,13 +174,15 @@ do
             echo "Copying output from core"
             ls ~/supertokens-root/supertokens-core/build/test-results/test/
             cp ~/supertokens-root/supertokens-core/build/test-results/test/*.xml ~/junit/
+            cp ~/supertokens-root/supertokens-core/build/test/test/*.xml ~/junit/
 
             if [[ $pluginToTest != "sqlite" ]]
             then
               echo "Copying output from plugin"
-              ls -R "~/supertokens-root/supertokens-$pluginToTest-plugin/build/"
+              ls -R "~/supertokens-root/supertokens-$pluginToTest-plugin/"
               echo "Using path: ~/supertokens-root/supertokens-$pluginToTest-plugin/build/test/test/*.xml"
               cp "~/supertokens-root/supertokens-$pluginToTest-plugin/build/test/test/*.xml" ~/junit/
+              cp "~/supertokens-root/supertokens-$pluginToTest-plugin/build/test-results/test/*.xml" ~/junit/
             fi
           fi