Skip to content

Commit

Permalink
Made tests more stable.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexindigo committed Dec 14, 2015
1 parent c77f860 commit d4fb437
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "batcher",
"version": "1.0.0",
"version": "1.0.1",
"description": "Batch processor of shell commands and javascript functions over shared state object. Async, sequential, parallel.",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions tests/error_sync.js
Expand Up @@ -11,8 +11,8 @@ module.exports =
{
setTimeout(function()
{
cb(null, 'Should be cancelled');
}, 2000);
cb(null, 'Will be cancelled');
}, 2500);
},

// broken sync function
Expand Down
7 changes: 4 additions & 3 deletions tests/simple.js
Expand Up @@ -10,7 +10,7 @@ module.exports =

'echo xxx-${user}-zzz',

[['echo A', 'echo B'], ['echo X', 'echo Y', 'echo Z']]
[['echo A', 'echo B'], ['echo W', 'echo X', 'echo Y', 'echo Z']]
],

expected: '# Started batch process\n\
Expand Down Expand Up @@ -65,15 +65,16 @@ xxx-alex-zzz\n\
### Executing ` [echo A, echo B] `...\n\
\n\
\n\
### Executing ` [echo X, echo Y, echo Z] `...\n\
### Executing ` [echo W, echo X, echo Y, echo Z] `...\n\
\n\
> Finished execution of ` [echo A, echo B] `:\n\
```\n\
A\n\
B\n\
```\n\
> Finished execution of ` [echo X, echo Y, echo Z] `:\n\
> Finished execution of ` [echo W, echo X, echo Y, echo Z] `:\n\
```\n\
W\n\
X\n\
Y\n\
Z\n\
Expand Down

0 comments on commit d4fb437

Please sign in to comment.