Skip to content

Commit

Permalink
fix: fix validation test stuck issue
Browse files Browse the repository at this point in the history
Signed-off-by: Phoeniix Zhao <[email protected]>
  • Loading branch information
Phoenix500526 committed Feb 26, 2024
1 parent 300ec46 commit 25259a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function common::run_container() {
docker run -d -it --rm --name=node${ith} --net=xline_net \
--ip=${SERVERS[$ith]} --cap-add=NET_ADMIN --cpu-shares=1024 \
-m=512M -v ${DIR}:/mnt ${XLINE_IMAGE} bash &
wait
wait $!
log::info container node${ith} started
}

Expand All @@ -24,7 +24,7 @@ function common::stop_container() {
if [ -n "$docker_id" ]; then
docker stop $docker_id
fi
wait
wait $!
log::info container ${image_name} stopped
}

Expand All @@ -34,7 +34,7 @@ function common::run_etcd_client() {
docker run -d -it --rm --name=client \
--net=xline_net --ip=${SERVERS[0]} --cap-add=NET_ADMIN \
--cpu-shares=1024 -m=512M -v ${DIR}:/mnt ${ETCDCTL_IMAGE} bash &
wait
wait $!
log::info container etcdctl started
}

Expand Down

0 comments on commit 25259a8

Please sign in to comment.