Skip to content

Commit

Permalink
test/io: test random port assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
develop7 committed Nov 23, 2023
1 parent 9df15e1 commit 77a9345
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/io/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ def sleep():

t.join()

def test_random_port_bound(defaultenv):
"PostgREST should bind to a random port when PGRST_SERVER_PORT is 0."

with run(env=defaultenv, port="0") as postgrest:
assert True # liveness check is done by run(), so we just need to check that it doesn't fail

def test_app_settings_reload(tmp_path, defaultenv):
"App settings should be reloaded from file when PostgREST is sent SIGUSR2."
Expand Down

0 comments on commit 77a9345

Please sign in to comment.