Skip to content

Commit

Permalink
(tests) add test for #2953
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarchaud committed Jun 23, 2017
1 parent 469c9bf commit 637b227
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/bash/instance-number.sh
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

SRC=$(cd $(dirname "$0"); pwd)
source "${SRC}/include.sh"
cd $file_path

$pm2 start server.js -i -100
should 'should have started 1 processes' 'online' 1

$pm2 delete all
2 changes: 2 additions & 0 deletions test/pm2_behavior_tests.sh
Expand Up @@ -131,6 +131,8 @@ bash ./test/bash/daemon-paths-override.sh
spec "Override daemon configuration paths"
bash ./test/bash/increment-var.sh
spec "Increment env variables"
bash ./test/bash/instance-number.sh
spec "Negative instance number spawn one worker"

# Issues related
bash ./test/bash/issues/2337.sh
Expand Down

0 comments on commit 637b227

Please sign in to comment.