Skip to content

Commit

Permalink
chore: fixing tests for indexer v3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Nov 21, 2023
1 parent 25ab9b4 commit 9ad8087
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_deploy_scenarios.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import re
import time
from collections.abc import Generator
from enum import Enum
from unittest.mock import Mock, patch
Expand Down Expand Up @@ -103,9 +104,14 @@ def _normalize_logs(self, logs: str) -> str:
def _wait_for_indexer_round(self, round_target: int, max_attempts: int = 100) -> None:
for _attempts in range(max_attempts):
health = self.indexer_client.health() # type: ignore[no-untyped-call]

if health["round"] >= round_target:
break

# With v3 indexer a small delay is needed
# not to exhaust attempts before target round is reached
time.sleep(0.5)


@pytest.fixture(scope="module")
def creator_name() -> str:
Expand Down

0 comments on commit 9ad8087

Please sign in to comment.