Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Jun 25, 2011
1 parent 602b50b commit a081fb9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests.js
Expand Up @@ -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){
Expand All @@ -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();
});
},
Expand All @@ -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(){
Expand Down

0 comments on commit a081fb9

Please sign in to comment.