mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix random delay in milliseconds case and change test to reproduce bug.
Because there was no multiplier the node.randomFirst was a string so the later '+' was a concatentation. The test failed to catch this because it uses integers not strings to configure the node.
This commit is contained in:
@@ -368,7 +368,7 @@ describe('delayNode', function() {
|
||||
});
|
||||
|
||||
it(' randomly delays the message in milliseconds', function(done) {
|
||||
randomDelayTest(400, 800, "milliseconds", done);
|
||||
randomDelayTest("400", "800", "milliseconds", done);
|
||||
});
|
||||
|
||||
it('randomly delays the message in minutes', function(done) {
|
||||
|
Reference in New Issue
Block a user