Skip to content

Commit

Permalink
tt2
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Oct 7, 2023
1 parent 5b55a4d commit c23da2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/cli/start-app.sh
Expand Up @@ -15,11 +15,13 @@ should 'should have started command' 'online' 1
should 'should have not been restarted' 'restart_time: 0' 1

cat test.log | grep "undefined" &> /dev/null
sleep 1
spec "should have printed undefined env var"

TEST='ok' $pm2 restart 0 --update-env
cat test.log | grep "ok" &> /dev/null

sleep 1
should 'should have started command' 'online' 1
should 'should have not been restarted' 'restart_time: 1' 1
spec "should have printed undefined env var"
Expand All @@ -40,6 +42,6 @@ spec "should have printed the test_val"
#
cd $file_path/c-compile
$pm2 start "cc hello.c; ./a.out" -l c-log.log --merge-logs
sleep 1
sleep 2
cat c-log.log | grep "Hello World" &> /dev/null
spec "should have printed undefined env var"

0 comments on commit c23da2f

Please sign in to comment.