Skip to content

Commit 6f325a9

Browse files
committed
fix: Update test execution logic in testkit.sh to capture exit codes
1 parent 7d96362 commit 6f325a9

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

src/Databags/ServerInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function toArray(): array
6161
{
6262
return [
6363
'address' => $this->address,
64-
cc 'protocolVersion' => $this->protocol,
64+
'protocolVersion' => $this->protocol,
6565
'agent' => $this->agent,
6666
];
6767
}

testkit-backend/testkit.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@ pip install -r requirements.txt
3333

3434
echo "Starting tests..."
3535

36-
python3 -m unittest tests.neo4j.test_authentication.TestAuthenticationBasic || exit 1
37-
echo "TestAuthenticationBasic Done"
38-
python3 -m unittest tests.neo4j.test_bookmarks.TestBookmarks || exit 1
39-
echo "TestBookmarks Done"
40-
python3 -m unittest tests.neo4j.test_session_run.TestSessionRun.test_iteration_nested || exit 1
41-
echo "TestSessionRun Done"
42-
#python3 -m unittest tests.neo4j.test_session_run.TestSessionRun.test_recover_from_fail_on_streaming|| true
43-
#echo "TestSessionRun Done"
36+
EXIT_CODE=0
37+
38+
python3 -m unittest tests.neo4j.test_authentication.TestAuthenticationBasic || EXIT_CODE=1
39+
40+
python3 -m unittest tests.neo4j.test_bookmarks.TestBookmarks || EXIT_CODE=1
41+
42+
python3 -m unittest tests.neo4j.test_session_run.TestSessionRun.test_iteration_nested || EXIT_CODE=1
43+
44+
# Uncomment to run this test as well
45+
# python3 -m unittest tests.neo4j.test_session_run.TestSessionRun.test_recover_from_fail_on_streaming || EXIT_CODE=1
46+
47+
exit $EXIT_CODE
4448

0 commit comments

Comments
 (0)