test: use only the first line in the logs to check the server version

This commit is contained in:
Laurence Isla
2024-05-24 17:19:31 -05:00
parent da9e497ef1
commit c8612f1df1
+2 -2
View File
@@ -1164,9 +1164,9 @@ def test_log_postgrest_version(defaultenv):
with run(env=defaultenv, no_startup_stdout=False) as postgrest:
version = postgrest.session.head("/").headers["Server"].split("/")[1]
output = sorted(postgrest.read_stdout(nlines=5))
output = postgrest.read_stdout(nlines=1)
assert "Starting PostgREST %s..." % version in output[4]
assert "Starting PostgREST %s..." % version in output[0]
def test_succeed_w_role_having_superuser_settings(defaultenv):