Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions test/e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ if [ "$CREATE_STACK" == "true" ]; then
fi

if [ "$TEST_SUITE" == "TestEthereumMultipartyE2ESuite" ] || [ "$TEST_SUITE" == "TestEthereumGatewayE2ESuite" ]; then
export CONTRACT_ADDRESS=$($CLI deploy ethereum $STACK_NAME ../data/simplestorage/simple_storage.json | jq -r '.address')
export CONTRACT_ADDRESS=$($CLI deploy ethereum $STACK_NAME ../data/simplestorage/simple_storage.json | jq -r '.address')
fi

create_accounts
Expand All @@ -136,8 +136,11 @@ checkOk $?
export STACK_FILE
export STACK_STATE

go clean -testcache && go test -v ./multiparty ./gateway -run $TEST_SUITE
checkOk $?
runTest() {
go clean -testcache && go test -v -p 1 ./multiparty ./gateway -run $TEST_SUITE
checkOk $?
}
runTest

if [ "$RESTART" == "true" ]; then
$CLI stop $STACK_NAME
Expand All @@ -147,7 +150,5 @@ if [ "$RESTART" == "true" ]; then
checkOk $?

create_accounts

go clean -testcache && go test -v ./multiparty ./gateway -run $TEST_SUITE
checkOk $?
fi
runTest
fi