Skip to content

Commit

Permalink
tests/riot.go Use fixed dirs for single server
Browse files Browse the repository at this point in the history
  • Loading branch information
suizman committed Nov 19, 2018
1 parent 6efb984 commit cc0e759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/start_server
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi
if [ -z "$CLUSTER_SIZE" ]
then
echo Starting single server...
go run ../main.go start -k pepe -p $(mktemp -d /var/tmp/demo.XXX) --raftpath $(mktemp -d /var/tmp/demo.XXX) -y /var/tmp/id_ed25519 -l error --http-addr :8080 --raft-addr :9000 --mgmt-addr :8090 $PROFILING &
go run ../main.go start -k pepe -p /var/tmp/demo.dbpath --raftpath /var/tmp/demo.raftpath -y /var/tmp/id_ed25519 -l error --http-addr :8080 --raft-addr :9000 --mgmt-addr :8090 $PROFILING &
sleep 10
echo done.
else
Expand Down
2 changes: 1 addition & 1 deletion tests/stop_server
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ else
fuser -k -n tcp 8080 8081 8082 8083 8084 || true
fi
sleep 5
rm -rf /var/tmp/demo.*
[ -f /var/tmp/keepme ] || rm -rf /var/tmp/demo.*
rm -f /var/tmp/id_ed25519{,.pub}
echo done.

0 comments on commit cc0e759

Please sign in to comment.