summaryrefslogtreecommitdiff
path: root/service/go
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-10-12 14:25:36 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-10-12 14:25:36 +0200
commitf07a7dc796d9f742cfcfe07739e463a08fa8f1a5 (patch)
tree0071dc5d4f92e4fa62056e76bcc471ccc5be9b4f /service/go
parent87892a34544c3fee446288e0d52f30c774187bc7 (diff)
Remove zmq server.key before unit tests are run
- Make tests that rely on that file fail in dev
Diffstat (limited to 'service/go')
-rwxr-xr-xservice/go4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/go b/service/go
index bf515ed8..7002b2c5 100755
--- a/service/go
+++ b/service/go
@@ -44,6 +44,10 @@ function runIntegrationTests {
function runUnitTests {
echo "Executing Unit Tests."
+ if [ -f ~/.config/leap/events/zmq_certificates/public_keys/server.key ] ; then
+ echo "Removing zmq server.key before running tests."
+ rm ~/.config/leap/events/zmq_certificates/public_keys/server.key
+ fi
trial --reporter=text $* test.unit
echo "Done."
}