From db72ad36940c25994876ff3968cc649f5bcd0d25 Mon Sep 17 00:00:00 2001 From: "Qumolama.d" Date: Mon, 16 May 2022 13:25:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=AC=E5=9C=B0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E5=92=8CCI=E6=B5=8B=E8=AF=95=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- tests/routings/authenticate.test.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 319b29b..5239181 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,7 +19,7 @@ steps: image: node:16 commands: - yarn install - - yarn test + - env CI=1 yarn test - name: notify image: appleboy/drone-telegram when: diff --git a/tests/routings/authenticate.test.js b/tests/routings/authenticate.test.js index d2ace4b..db65e35 100644 --- a/tests/routings/authenticate.test.js +++ b/tests/routings/authenticate.test.js @@ -20,7 +20,9 @@ beforeAll(() => { writeFileSync('private.key', privateKey) } - //config.database.url = 'mongodb://setup-database:27017/yggdrasil?readPreference=primary&appname=MongoDB%20Compass&directConnection=true&ssl=false' + if(process.env['CI']) { + config.database.url = 'mongodb://setup-database:27017/yggdrasil?readPreference=primary&appname=MongoDB%20Compass&directConnection=true&ssl=false' + } return setup() })