Start offchain-relayer process in integration test script (#12)

Co-authored-by: Drew <dsterioti@users.noreply.github.com>
This commit is contained in:
Reptile 2022-10-03 08:30:17 -05:00 committed by GitHub
parent 86c5f26b54
commit 7a75a33d19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -6,8 +6,15 @@ if [ $? -ne 0 ]; then
exit 1;
fi
# start the offchain-relayer process
echo "Starting off-chain relayer process."
cd $(dirname $0)/../offchain-relayer && ./start-relayer.sh > offchain-relayer.out 2>&1 &
# go to the sdk directory
cd $(dirname $0)/../sdk
# run tests in sdk directory
npm run test
npm run test
# kill the offchain-relayer process
pkill -f "exe/main relay"