Skip to content

Commit b53632d

Browse files
committed
Fixes warnings in test 02 by running it separately
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.
1 parent f3ef7e8 commit b53632d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Enables waiting for flows to have started for embedded Node-RED applications",
55
"main": "index.js",
66
"scripts": {
7-
"test": "tape test/??.js",
7+
"test": "tape test/01.js && tape test/02.js",
88
"lint": "eslint .",
99
"pretest": "npm run lint"
1010
},

test/02.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
"use strict";
22

3+
/*
4+
* Note this test suite needs to be run as its independent process, i.e., as
5+
* its own invocation with tape. Otherwise the RED embedded runtime will have
6+
* been initialized already, and the tests here are then not only mostly
7+
* pointless, but the calls to RED.init() and RED.start() will produce
8+
* warning messages.
9+
*/
10+
311
var test = require('tape'),
412
sinon = require('sinon');
513
var embeddedStart = require('../'),

0 commit comments

Comments
 (0)