From ae404b7834990b833c1f0f703ec8fbcfecd201c2 Mon Sep 17 00:00:00 2001 From: summersamara Date: Wed, 3 Jul 2024 16:15:39 +0200 Subject: [PATCH] fix test: ignore string case when waiting for redis-server 'ready to accept connections' message --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 0e84496..8db1622 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -13,5 +13,5 @@ def redis_server(tmp_path, redis_socket): with TestProcess( 'redis-server', '--port', '0', '--save', '', '--appendonly', 'yes', '--dir', tmp_path, '--unixsocket', redis_socket ) as redis_server: - wait_for_strings(redis_server.read, 2, 'ready to accept connections') + wait_for_strings(redis_server.read, 2, 'ready to accept connections', ignore_case=True) yield redis_server