Beginning setup of new release testing.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
14
release_tests/support/__init__.py
Normal file
14
release_tests/support/__init__.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""Common support items for rekease teesting."""
|
||||
|
||||
from socket import socket
|
||||
|
||||
ADDR = "127.56.0.1"
|
||||
|
||||
|
||||
def get_port():
|
||||
"""Retrieve an unused port."""
|
||||
sock = socket()
|
||||
sock.bind((ADDR, 0))
|
||||
port = sock.getsockname()[1]
|
||||
sock.close()
|
||||
return port
|
||||
Reference in New Issue
Block a user