From c8612f1df1fdf7f2598ae4c72ac25fbf5b0b3ad7 Mon Sep 17 00:00:00 2001 From: Laurence Isla Date: Fri, 24 May 2024 16:26:33 -0500 Subject: [PATCH] test: use only the first line in the logs to check the server version --- test/io/test_io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/io/test_io.py b/test/io/test_io.py index d893440fa..80b456f41 100644 --- a/test/io/test_io.py +++ b/test/io/test_io.py @@ -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):