Skip to content

Commit 39f4db0

Browse files
authored
chore: Skip flaky Windows test test_crawler_instrumentor_capability (#1470)
### Issues - Relates: #1469
1 parent ae27746 commit 39f4db0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/otel/test_crawler_instrumentor.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import io
22
import json
3+
import os
34
import re
45
from unittest import mock
56

7+
import pytest
68
from opentelemetry.sdk.resources import Resource
79
from opentelemetry.sdk.trace import TracerProvider
810
from opentelemetry.sdk.trace.export import ConsoleSpanExporter, SimpleSpanProcessor
@@ -14,6 +16,10 @@
1416
from crawlee.storages import Dataset
1517

1618

19+
@pytest.mark.skipif(
20+
os.name == 'nt',
21+
reason='This test is flaky on Windows, see https://github.com/apify/crawlee-python/issues/1469.',
22+
)
1723
async def test_crawler_instrumentor_capability(server_url: URL) -> None:
1824
"""Test OpenTelemetry instrumentation capability of the crawler.
1925

0 commit comments

Comments
 (0)