Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fixing tests for indexer v3 compatibility #58

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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