Skip to content

Commit

Permalink
Fixes warnings in test 02 by running it separately
Browse files Browse the repository at this point in the history
They used to be run separately, but this was accidentally changed in
ba3ddd3. Also adds a comments to the
top of test 02 to prevent a future accidental reversion.
  • Loading branch information
hlapp committed Feb 4, 2018
1 parent f5e4d03 commit 717c908
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Enables waiting for flows to have started for embedded Node-RED applications",
"main": "index.js",
"scripts": {
"test": "tape test/??.js",
"test": "tape test/01.js && tape test/02.js",
"lint": "eslint .",
"pretest": "npm run lint"
},
Expand Down
8 changes: 8 additions & 0 deletions test/02.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
"use strict";

/*
* Note this test suite needs to be run as its independent process, i.e., as
* its own invocation with tape. Otherwise the RED embedded runtime will have
* been initialized already, and the tests here are then not only mostly
* pointless, but the calls to RED.init() and RED.start() will produce
* warning messages.
*/

var test = require('tape'),
sinon = require('sinon');
var embeddedStart = require('../'),
Expand Down

0 comments on commit 717c908

Please sign in to comment.