Skip to content

Commit

Permalink
update test CI port from 8080 to 80
Browse files Browse the repository at this point in the history
  • Loading branch information
wumingzhilian committed Apr 9, 2024
1 parent 65f90ed commit 46ff8fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ jobs:
--privileged \
-d \
-v ./dojo-test-data:/opt/pwn.college/data:shared \
-p 22222:22 -p 8080:80 -p 10443:443 \
-p 2222:22 -p 80:80 -p 443:443 \
--name dojo-test \
dojo-test
- name: Wait for services to build and start
run: |
docker exec dojo-test dojo wait
Expand All @@ -56,4 +55,4 @@ jobs:
- name: Run tests against dojo
run: |
export MOZ_HEADLESS=1
pytest -vrpP ./test || (docker exec dojo-test docker compose logs && false)
pytest -vrpP ./test || (docker exec dojo-test docker compose logs && false)
2 changes: 1 addition & 1 deletion test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os

PROTO="http"
HOST="localhost.pwn.hust.college:8080"
HOST="localhost.pwn.hust.college"
CONTAINER_NAME = os.environ.get("CONTAINER_NAME", "dojo-test")
TEST_DOJOS_LOCATION = pathlib.Path(__file__).parent / "dojos"

Expand Down

0 comments on commit 46ff8fb

Please sign in to comment.