From 714cc8610af618d770b2c94d2b0515bdd50055ac Mon Sep 17 00:00:00 2001 From: vjrj Date: Thu, 14 Jun 2018 21:24:29 +0200 Subject: [PATCH] Improved test lauch for ci --- test/rest.test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/rest.test.js b/test/rest.test.js index 6b48274..f7c4543 100644 --- a/test/rest.test.js +++ b/test/rest.test.js @@ -5,11 +5,10 @@ import { chai } from 'meteor/practicalmeteor:chai'; import { Meteor } from 'meteor/meteor'; import { HTTP } from 'meteor/http'; -import { Accounts } from 'meteor/accounts-base'; -import Subscriptions from '/imports/api/Subscriptions/Subscriptions'; +const testPort = process.env.TEST_PORT; function url(path) { - return `http://127.0.0.1:3000/${path}`; + return `http://127.0.0.1:${testPort}/${path}`; } describe('basic api v1 returns', () => {