From 5847f92bef082e47759004930adde0dceae47335 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Thu, 19 Jul 2018 11:06:57 +0900 Subject: [PATCH] fix test for template node for persistable context --- test/nodes/core/core/80-template_spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/nodes/core/core/80-template_spec.js b/test/nodes/core/core/80-template_spec.js index 1284b7dba..62db71179 100644 --- a/test/nodes/core/core/80-template_spec.js +++ b/test/nodes/core/core/80-template_spec.js @@ -36,6 +36,9 @@ describe('template node', function() { function initContext(done) { Context.init({ contextStorage: { + memory0: { // do not use (for excluding effect fallback) + module: "memory" + }, memory1: { module: "memory" }, @@ -337,7 +340,7 @@ describe('template node', function() { msg.should.have.property('topic', 'bar'); msg.should.have.property('payload', 'foo'); // result is in flow context - n2.context().flow.get("payload", "memory", function (err, val) { + n2.context().flow.get("payload", "memory1", function (err, val) { val.should.equal("payload=foo"); done(); }); @@ -375,7 +378,7 @@ describe('template node', function() { msg.should.have.property('topic', 'bar'); msg.should.have.property('payload', 'foo'); // result is in global context - n2.context().global.get("payload", "memory", function (err, val) { + n2.context().global.get("payload", "memory1", function (err, val) { val.should.equal("payload=foo"); done(); });