We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05d8ce5 commit 087d3d0Copy full SHA for 087d3d0
solana/run-tests
@@ -2,6 +2,9 @@
2
3
set -euo pipefail
4
5
+RPC_PORT_NUMBER=8899
6
+FAUCET_PORT_NUMBER=9900
7
+
8
# Run each tests/*.test.ts file separately to avoid account state persisting between tests
9
for file in `ls tests/*.test.ts`
10
do
@@ -14,4 +17,6 @@ do
14
17
15
18
# kill solana validator if still running to avoid port already in use error
16
19
if pgrep solana-test-validator; then pkill solana-test-validator; fi
20
+ lsof -i tcp:${RPC_PORT_NUMBER} | awk 'NR!=1 {print $2}' | xargs kill
21
+ lsof -i tcp:${FAUCET_PORT_NUMBER} | awk 'NR!=1 {print $2}' | xargs kill
22
done
0 commit comments