From a081fb9099e220def1d7fc9273999c68832f7ade Mon Sep 17 00:00:00 2001 From: andris9 Date: Sat, 25 Jun 2011 21:21:07 +0300 Subject: [PATCH] tests --- tests.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests.js b/tests.js index 8367b22..0a4309f 100644 --- a/tests.js +++ b/tests.js @@ -363,7 +363,7 @@ module.exports.worker = testCase({ test_partial_data: function(test){ test.expect(4); - var job = this.client.submitJob("partial", "test", {encoding:"utf-8"}), + var job = this.client.submitJob("partial", "test", {encoding:"number"}), i = 0; job.on("complete", function(data){ @@ -382,7 +382,7 @@ module.exports.worker = testCase({ }); job.on("data", function(data){ - test.equal(String(i++), data, "Function part OK"); + test.equal(i++, data, "Function part OK"); test.done(); }); }, @@ -400,7 +400,6 @@ module.exports.worker = testCase({ job.on("warning", function(data){ test.equal(data, "foo", "Function warning"); - test.done(); }); job.on("fail", function(){