Mark test_get_multiple_2000_store_messages to run in shard 1

This commit is contained in:
aya 2024-12-25 12:14:44 +02:00
parent 2b01284f24
commit 36563f7864
2 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,7 @@ jobs:
- name: Run tests
run: |
pytest --dist=loadgroup -k "test_get_multiple_2000_store_messages" -n 1 --reruns 2 --shard-id=${{ matrix.shard }} --num-shards=11 --alluredir=allure-results
pytest --dist=loadgroup --reruns 2 --shard-id=${{ matrix.shard }} --num-shards=11 --alluredir=allure-results
- name: Get allure history
if: always()

View File

@ -10,6 +10,7 @@ from src.steps.store import StepsStore
class TestCursor(StepsStore):
# we implicitly test the reusabilty of the cursor for multiple nodes
@pytest.mark.shard1
def test_get_multiple_2000_store_messages(self):
expected_message_hash_list = []
for i in range(2000):