diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 14ebc29899d0a937b8a1879f7c2c1d3245bd58fb..efd88e7515e24e3a16044d7916f508629d4472ac 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,4 +4,4 @@ test:
   stage: test
   script:
     - npm install --global mocha
-    - cd realNodeServer && npm test && xargs kill -2
\ No newline at end of file
+    - cd realNodeServer && npm test --exit
\ No newline at end of file