Skip to content

Commit 9cbb2b1

Browse files
committed
TST: Reduce timeout in test_timeout_classic
to simulate real world timed out query
1 parent fb76dd6 commit 9cbb2b1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

astroquery/vo_conesearch/tests/test_conesearch.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,11 @@ def test_sky_coord_classic(self):
123123

124124
def test_timeout_classic(self):
125125
"""Test timed out query."""
126-
with pytest.warns(W25, match='timed out'):
127-
with pytest.warns(NoResultsWarning):
128-
with conf.set_temp('timeout', 1e-6):
129-
result = conesearch.conesearch(
130-
SCS_CENTER, SCS_RADIUS, cache=False,
131-
verbose=self.verbose, catalog_db=self.url)
126+
with (pytest.warns(W25, match='timed out'), pytest.warns(NoResultsWarning),
127+
conf.set_temp('timeout', 1e-19)):
128+
result = conesearch.conesearch(
129+
SCS_CENTER, SCS_RADIUS, cache=False,
130+
verbose=self.verbose, catalog_db=self.url)
132131
assert result is None
133132

134133
def test_searches_classic(self):

0 commit comments

Comments
 (0)