From 69201cf2a5d368a4ca460164384e294179775c6d Mon Sep 17 00:00:00 2001 From: BlackYps Date: Thu, 11 Jul 2024 23:17:10 +0200 Subject: [PATCH] Try downgrading rabbitmq --- .github/workflows/test.yml | 2 +- scripts/local_rabbitmq.sh | 2 +- tests/integration_tests/test_message_queue_service.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 11e6687..6c8d70c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,7 +46,7 @@ jobs: MYSQL_PASSWORD: banana faf-rabbitmq: - image: rabbitmq:3.9-alpine + image: rabbitmq:3.8-management-alpine ports: - 5672:5672 options: >- diff --git a/scripts/local_rabbitmq.sh b/scripts/local_rabbitmq.sh index d6a171b..323a257 100644 --- a/scripts/local_rabbitmq.sh +++ b/scripts/local_rabbitmq.sh @@ -9,7 +9,7 @@ RABBITMQ_LEAGUE_SERVICE_USER=faf-league-service RABBITMQ_LEAGUE_SERVICE_PASS=banana RABBITMQ_LEAGUE_SERVICE_VHOST=/faf-lobby -docker run -d -p 5672:5672 --restart unless-stopped --name faf-rabbitmq rabbitmq:3.9-alpine +docker run -d -p 5672:5672 --restart unless-stopped --name faf-rabbitmq rabbitmq:3.8-management-alpine # This doesn't seem to pick up the pid file docker exec faf-rabbitmq rabbitmqctl wait --timeout ${MAX_WAIT_SECONDS} "${RABBITMQ_PID_FILE}" diff --git a/tests/integration_tests/test_message_queue_service.py b/tests/integration_tests/test_message_queue_service.py index 0d3ba89..6e46c78 100644 --- a/tests/integration_tests/test_message_queue_service.py +++ b/tests/integration_tests/test_message_queue_service.py @@ -116,7 +116,7 @@ async def test_parse_incoming_message(mq_service, consumer): await asyncio.sleep(0.1) - received_message = consumer.received_messages[-1] + received_message = consumer.received_messages[0] parsed_message = message_to_dict(received_message) for key, value in payload.items():