Skip to content

Commit a99a4c7

Browse files
committed
Add only_rerun
1 parent 75f7995 commit a99a4c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tiledb/tests/test_dask.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
import numpy as np
66
import pytest
7+
from distributed.comm.core import CommClosedError
8+
from tornado.iostream import StreamClosedError
79

810
import tiledb
911

@@ -42,7 +44,9 @@ def _make_multiattr_2d(self, uri, shape=(0, 100), tile=10):
4244

4345
tiledb.DenseArray.create(uri, schema)
4446

45-
@pytest.mark.flaky(reruns=3, reruns_delay=2)
47+
@pytest.mark.flaky(
48+
reruns=3, reruns_delay=2, only_rerun=(CommClosedError, StreamClosedError)
49+
)
4650
@pytest.mark.filterwarnings("ignore:There is no current event loop")
4751
def test_dask_multiattr_2d(self):
4852
uri = self.path("multiattr")

0 commit comments

Comments
 (0)