From e9fd60096b203c97bd89db941a2010f91a32eea1 Mon Sep 17 00:00:00 2001 From: Kris Moore Date: Mon, 1 Feb 2016 14:18:40 -0500 Subject: [PATCH] Have the api-test.sh script cleanup after itself --- tests/api-test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/api-test.sh b/tests/api-test.sh index 00f947b..a4641ba 100755 --- a/tests/api-test.sh +++ b/tests/api-test.sh @@ -95,7 +95,8 @@ if [ $? -ne 0 ] ; then echo "Failed.. Error output:" cat /tmp/.rstErr fi - +rm $ofile +rm /tmp/.rstErr # Now check the response via WebSockets export NODE_TLS_REJECT_UNAUTHORIZED=0 @@ -109,3 +110,4 @@ echo "" | tee -a $ofile echo "WebSocket Response:" | tee -a $ofile echo "-------------------------------" | tee -a $ofile echo "{ \"namespace\":\"${namesp}\", \"name\":\"${name}\", \"id\":\"fooid\", \"args\":${payload} }" | node sendwebsocket.js "$fuser" "$fpass" | tee -a $ofile +rm $ofile