Skip to content

Commit f05d099

Browse files
author
Marek Skalický
committed
Do not publish a container's port(s) to the host in tests
1 parent f6fcc6c commit f05d099

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

2.7/test/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ prepare() {
5454
}
5555

5656
run_test_application() {
57-
docker run --user=100001 ${CONTAINER_ARGS} --rm --cidfile=${cid_file} -p ${test_port} ${IMAGE_NAME}-testapp
57+
docker run --user=100001 ${CONTAINER_ARGS} --rm --cidfile=${cid_file} ${IMAGE_NAME}-testapp
5858
}
5959

6060
cleanup_app() {

3.3/test/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ prepare() {
5454
}
5555

5656
run_test_application() {
57-
docker run --user=100001 ${CONTAINER_ARGS} --rm --cidfile=${cid_file} -p ${test_port} ${IMAGE_NAME}-testapp
57+
docker run --user=100001 ${CONTAINER_ARGS} --rm --cidfile=${cid_file} ${IMAGE_NAME}-testapp
5858
}
5959

6060
cleanup_app() {

3.4/test/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ prepare() {
5454
}
5555

5656
run_test_application() {
57-
docker run --user=100001 ${CONTAINER_ARGS} --rm --cidfile=${cid_file} -p ${test_port} ${IMAGE_NAME}-testapp
57+
docker run --user=100001 ${CONTAINER_ARGS} --rm --cidfile=${cid_file} ${IMAGE_NAME}-testapp
5858
}
5959

6060
cleanup_app() {

3.5/test/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ prepare() {
5454
}
5555

5656
run_test_application() {
57-
docker run --user=100001 ${CONTAINER_ARGS} --rm --cidfile=${cid_file} -p ${test_port} ${IMAGE_NAME}-testapp
57+
docker run --user=100001 ${CONTAINER_ARGS} --rm --cidfile=${cid_file} ${IMAGE_NAME}-testapp
5858
}
5959

6060
cleanup_app() {

0 commit comments

Comments
 (0)