mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-08-27 01:46:33 +00:00
Mark OpenAPIServiceConnector integration test as flaky (#7007)
This commit is contained in:
parent
8a101701fa
commit
a7209f6413
@ -1,12 +1,14 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
import pytest
|
||||
import time
|
||||
from unittest.mock import MagicMock, Mock
|
||||
|
||||
import flaky
|
||||
import pytest
|
||||
import requests
|
||||
from openapi3 import OpenAPI
|
||||
from openapi3.schemas import Model
|
||||
|
||||
from haystack.components.connectors import OpenAPIServiceConnector
|
||||
from haystack.dataclasses import ChatMessage
|
||||
|
||||
@ -140,6 +142,7 @@ class TestOpenAPIServiceConnector:
|
||||
" to get the raw data from the service response"
|
||||
)
|
||||
|
||||
@flaky.flaky(max_runs=5, rerun_filter=lambda *_: time.sleep(5))
|
||||
@pytest.mark.integration
|
||||
@pytest.mark.skipif(not os.getenv("GITHUB_TOKEN"), reason="GITHUB_TOKEN is not set")
|
||||
def test_run(self, genuine_fc_message, test_files_path):
|
||||
|
Loading…
x
Reference in New Issue
Block a user