Skip to content

Commit

Permalink
chore: Skip flaky test (apify#794)
Browse files Browse the repository at this point in the history
- closes apify#781
  • Loading branch information
janbuchar authored Dec 10, 2024
1 parent d50859a commit 1ee4623
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/basic_crawler/test_basic_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from collections import Counter
from dataclasses import dataclass
from datetime import timedelta
import os
from pathlib import Path
from typing import TYPE_CHECKING, Any
from unittest.mock import AsyncMock, Mock
Expand Down Expand Up @@ -890,6 +891,7 @@ async def handler(context: BasicCrawlingContext) -> None:
assert not datasets_path.exists() or list(datasets_path.iterdir()) == []


@pytest.mark.skipif(os.name == 'nt' and 'CI' in os.environ, reason='Skipped in Windows CI')
async def test_logs_final_statistics(monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture) -> None:
# Set the log level to INFO to capture the final statistics log.
caplog.set_level(logging.INFO)
Expand Down

0 comments on commit 1ee4623

Please sign in to comment.