Skip to content

Commit da5cc62

Browse files
committed
Fix opensearch timeout hopefully
1 parent 3a29eaf commit da5cc62

File tree

4 files changed

+2
-16
lines changed

4 files changed

+2
-16
lines changed

key-value/key-value-aio/tests/stores/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async def eventually_consistent(self) -> None: # noqa: B027
3030
@abstractmethod
3131
async def store(self) -> BaseStore | AsyncGenerator[BaseStore, None]: ...
3232

33-
@pytest.mark.timeout(60)
33+
@pytest.mark.timeout(90)
3434
async def test_store(self, store: BaseStore):
3535
"""Tests that the store is a valid AsyncKeyValueProtocol."""
3636
assert isinstance(store, AsyncKeyValueProtocol) is True

key-value/key-value-aio/tests/stores/opensearch/test_opensearch.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from opensearchpy import AsyncOpenSearch
1212
from typing_extensions import override
1313

14-
from key_value.aio.protocols.key_value import AsyncKeyValueProtocol
1514
from key_value.aio.stores.base import BaseStore
1615
from key_value.aio.stores.opensearch import OpenSearchStore
1716
from key_value.aio.stores.opensearch.store import (
@@ -148,12 +147,6 @@ async def sanitizing_store(self, opensearch_client: AsyncOpenSearch) -> AsyncGen
148147
async with store:
149148
yield store
150149

151-
@override
152-
@pytest.mark.timeout(120)
153-
async def test_store(self, store: BaseStore):
154-
"""Tests that the store is a valid AsyncKeyValueProtocol."""
155-
assert isinstance(store, AsyncKeyValueProtocol) is True
156-
157150
@pytest.mark.skip(reason="Distributed Caches are unbounded")
158151
@override
159152
async def test_not_unbounded(self, store: BaseStore): ...

key-value/key-value-sync/tests/code_gen/stores/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def eventually_consistent(self) -> None: # noqa: B027
2727
@abstractmethod
2828
def store(self) -> BaseStore | Generator[BaseStore, None, None]: ...
2929

30-
@pytest.mark.timeout(60)
30+
@pytest.mark.timeout(90)
3131
def test_store(self, store: BaseStore):
3232
"""Tests that the store is a valid KeyValueProtocol."""
3333
assert isinstance(store, KeyValueProtocol) is True

key-value/key-value-sync/tests/code_gen/stores/opensearch/test_opensearch.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from opensearchpy import OpenSearch
1515
from typing_extensions import override
1616

17-
from key_value.sync.code_gen.protocols.key_value import KeyValueProtocol
1817
from key_value.sync.code_gen.stores.base import BaseStore
1918
from key_value.sync.code_gen.stores.opensearch import OpenSearchStore
2019
from key_value.sync.code_gen.stores.opensearch.store import (
@@ -142,12 +141,6 @@ def sanitizing_store(self, opensearch_client: OpenSearch) -> Generator[BaseStore
142141
with store:
143142
yield store
144143

145-
@override
146-
@pytest.mark.timeout(120)
147-
def test_store(self, store: BaseStore):
148-
"""Tests that the store is a valid KeyValueProtocol."""
149-
assert isinstance(store, KeyValueProtocol) is True
150-
151144
@pytest.mark.skip(reason="Distributed Caches are unbounded")
152145
@override
153146
def test_not_unbounded(self, store: BaseStore): ...

0 commit comments

Comments
 (0)