Skip to content

Commit

Permalink
Update test code for ubuntu evn
Browse files Browse the repository at this point in the history
  • Loading branch information
cupuyc committed Sep 16, 2016
1 parent 4dcebec commit c180c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runTest.sh
Expand Up @@ -15,9 +15,9 @@ while [ $COUNTER -gt 0 ]; do
echo "[SCRIPT] Cleared"

echo "[SCRIPT] Spawning writter"
java -cp ethereumj-core/build/libs/ethereumj-core-1.4.0-SNAPSHOT-all.jar org.ethereum.db.TestLongBatchApplication & pid=$!
java -Xmx4g -cp ethereumj-core/build/libs/ethereumj-core-1.4.0-SNAPSHOT-all.jar org.ethereum.db.TestLongBatchApplication & pid=$!

SECS=$(( ( RANDOM % 10 ) + 10 ))
SECS=$(( ( RANDOM % 10 ) + 25 ))
# in the background, sleep for 10 secs then kill that process
echo "[SCRIPT] Sleep for $SECS seconds and then kill process"
(sleep $SECS && echo "[SCRIPT] Killed batch after $SECS seconds" && kill -9 $pid)
Expand Down

0 comments on commit c180c2a

Please sign in to comment.