From 7a75a33d197989bae83a7fe8572061bde2cdc94f Mon Sep 17 00:00:00 2001 From: Reptile <43194093+dsterioti@users.noreply.github.com> Date: Mon, 3 Oct 2022 08:30:17 -0500 Subject: [PATCH] Start offchain-relayer process in integration test script (#12) Co-authored-by: Drew --- testing/run_tilt_tests.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/testing/run_tilt_tests.sh b/testing/run_tilt_tests.sh index 29367b1..e830547 100644 --- a/testing/run_tilt_tests.sh +++ b/testing/run_tilt_tests.sh @@ -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 \ No newline at end of file +npm run test + +# kill the offchain-relayer process +pkill -f "exe/main relay" \ No newline at end of file