Skip to content

Commit

Permalink
revert deleting data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Lorena Rodriguez Viruel authored and Maria Lorena Rodriguez Viruel committed Sep 16, 2024
1 parent 96dd5c9 commit 809627a
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions mediator/test/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,11 @@ MEDIATORDIR="${BASEDIR}/mediator"

export NODE_ENV=integration
export NODE_TLS_REJECT_UNAUTHORIZED=0
export COUCHDB_DATA=./test/srv

# Cleanup from last test, in case of interruptions
cd $BASEDIR
./startup.sh destroy
cd docker
# Remove the ./test/srv directory if it exists
if [ -d "./test/srv" ]; then
echo "Removing ./test/srv directory..."
rm -rf ./test/srv
echo "./test/srv directory removed."
else
echo "./test/srv directory does not exist."
fi

# Starting the interoperability containers
cd $BASEDIR
./startup.sh init
Expand Down Expand Up @@ -53,12 +45,4 @@ unset CHT_USERNAME
unset CHT_PASSWORD
cd $BASEDIR
./startup.sh destroy
cd docker
# Remove the ./srv directory if it exists
if [ -d "./test/srv" ]; then
echo "Removing ./test/srv directory..."
rm -rf ./test/srv
echo "./test/srv directory removed."
else
echo "./test/srv directory does not exist."
fi

0 comments on commit 809627a

Please sign in to comment.