Use docker exec -d to detach test commands

This commit is contained in:
kaiyou 2020-05-23 11:36:35 +02:00 committed by Leo Antunes
parent fbd48468c4
commit b154851d40
1 changed files with 2 additions and 2 deletions

View File

@ -107,13 +107,13 @@ test_multiple_clusters_restart() {
run_test_container test1-orig test1 --init $cluster1 run_test_container test1-orig test1 --init $cluster1
run_test_container test2-orig test2 --init $cluster2 run_test_container test2-orig test2 --init $cluster2
run_test_container test3-orig test3 --join test1-orig $cluster1 run_test_container test3-orig test3 --join test1-orig $cluster1
docker exec test3-orig bash -c "/entrypoint.sh --join test2-orig $cluster2 2>/dev/null &" docker exec -d test3-orig bash -c "/entrypoint.sh --join test2-orig $cluster2"
sleep 3 sleep 3
docker stop test3-orig docker stop test3-orig
docker start test3-orig docker start test3-orig
docker exec test3-orig bash -c "/entrypoint.sh $cluster2 2>/dev/null &" docker exec -d test3-orig bash -c "/entrypoint.sh $cluster2"
sleep 3 sleep 3