Commit 2f07eed 1 parent 73f154f commit 2f07eed Copy full SHA for 2f07eed
File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ class NodeTestHelper extends EventEmitter {
118
118
}
119
119
}
120
120
121
- async load ( testNode , testFlow , testCredentials , cb ) {
121
+ load ( testNode , testFlow , testCredentials , cb ) {
122
122
const log = this . _log ;
123
123
const logSpy = this . _logSpy = this . _sandbox . spy ( log , 'log' ) ;
124
124
logSpy . FATAL = log . FATAL ;
@@ -193,12 +193,14 @@ class NodeTestHelper extends EventEmitter {
193
193
testNode ( red ) ;
194
194
}
195
195
196
- await redNodes . loadFlows ( ) ;
197
- redNodes . startFlows ( ) ;
198
- should . deepEqual ( testFlow , redNodes . getFlows ( ) . flows ) ;
199
- if ( typeof cb === 'function' ) {
200
- cb ( ) ;
201
- }
196
+ return redNodes . loadFlows ( )
197
+ . then ( ( ) => {
198
+ redNodes . startFlows ( ) ;
199
+ should . deepEqual ( testFlow , redNodes . getFlows ( ) . flows ) ;
200
+ if ( typeof cb === 'function' ) {
201
+ cb ( ) ;
202
+ }
203
+ } ) ;
202
204
}
203
205
204
206
unload ( ) {
@@ -236,7 +238,7 @@ class NodeTestHelper extends EventEmitter {
236
238
237
239
const cloneMessage = this . _RED . util . cloneMessage ;
238
240
239
- node . next = async function ( event ) {
241
+ node . next = function ( event ) {
240
242
if ( node . testhelper [ event ] . args . length > 0 ) {
241
243
return node . testhelper [ event ] . args . shift ( ) ;
242
244
}
You can’t perform that action at this time.
0 commit comments