run test_get_multiple_2000_store_messages in separate shard

This commit is contained in:
aya 2024-12-25 14:22:11 +02:00
parent adcfc49684
commit c2ccaea7ba
2 changed files with 2 additions and 3 deletions

View File

@ -57,9 +57,9 @@ jobs:
- name: Run tests
run: |
if [ "${{ matrix.shard }}" == 7 ]; then
pytest --reruns 2 tests/store/test_cursor.py
pytest --reruns 2 tests/store/test_cursor.py:TestCursor::test_get_multiple_2000_store_messages
elif [ "${{ matrix.shard }}" != 7 ]; then
pytest --dist=loadgroup --ignore=tests/store/test_cursor.py --reruns 2 --shard-id=${{ matrix.shard }} --num-shards=11 --alluredir=allure-results
pytest --dist=loadgroup --ignore=tests/store/test_cursor.py:TestCursor::test_get_multiple_2000_store_messages --reruns 2 --shard-id=${{ matrix.shard }} --num-shards=11 --alluredir=allure-results
fi

View File

@ -10,7 +10,6 @@ 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):