Skip to content

Commit

Permalink
example/test: Check two daemons cannot run in the same state dir
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Hershberger <[email protected]>
  • Loading branch information
MggMuggins committed Jun 14, 2024
1 parent caa46ad commit 4da47fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/test/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ for member in "${members[@]}"; do
microctl --state-dir "${state_dir}" waitready
done

# Ensure two daemons cannot start in the same state dir
! microd --state-dir "${test_dir}/c1" "${cluster_flags[@]}"

# Ensure only valid member names are used
! microctl --state-dir "${test_dir}/c1" init "c/1" 127.0.0.1:9001 --bootstrap

Expand Down

0 comments on commit 4da47fd

Please sign in to comment.