diff --git a/java/ql/integration-tests/java/buildless-snapshot-repository/test.py b/java/ql/integration-tests/java/buildless-snapshot-repository/test.py index e5e38d725ae8..4b2835d389a5 100644 --- a/java/ql/integration-tests/java/buildless-snapshot-repository/test.py +++ b/java/ql/integration-tests/java/buildless-snapshot-repository/test.py @@ -1,6 +1,6 @@ import subprocess import sys - +import time def test(codeql, java): # This serves the "repo" directory on http://localhost:9427 @@ -8,9 +8,16 @@ def test(codeql, java): [sys.executable, "-m", "http.server", "9427"], cwd="repo" ) try: + time.sleep(300) + subprocess.call(["curl", "-m", "30", "http://localhost:9427/snapshots"]) + subprocess.call(["curl", "-m", "30", "http://localhost:9427/snapshots/com/github/my/snapshot/test/snapshottest/1.0-SNAPSHOT/maven-metadata.xml"]) codeql.database.create( extractor_option="buildless=true", _env={"CODEQL_EXTRACTOR_JAVA_OPTION_BUILDLESS_CLASSPATH_FROM_BUILD_FILES": "true"}, ) finally: + subprocess.call(["ps", "aux", "-ww"]) + subprocess.call(["netstat", "-anv"]) + subprocess.call(["curl", "-m", "30", "http://localhost:9427/snapshots"]) + subprocess.call(["curl", "-m", "30", "http://localhost:9427/snapshots/com/github/my/snapshot/test/snapshottest/1.0-SNAPSHOT/maven-metadata.xml"]) repo_server_process.kill()