Просмотр исходного кода

[misc] test/acceptance: skip the shutdown in case we did not start yet

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
Jakob Ackermann 6 лет назад
Родитель
Сommit
847f124d7b
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      services/filestore/test/acceptance/js/FilestoreApp.js

+ 1 - 0
services/filestore/test/acceptance/js/FilestoreApp.js

@@ -62,6 +62,7 @@ class FilestoreApp {
   }
 
   async stop() {
+    if (!this.server) return
     const closeServer = promisify(this.server.close).bind(this.server)
     try {
       await closeServer()