Skip to content

Commit 49f493a

Browse files
authored
Fail integration tests if neo4j snapshot can't be downloaded (#507)
1 parent f6315a3 commit 49f493a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/integration/conftest.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,8 @@ def service(request):
189189
if existing_service:
190190
NEO4J_SERVICE = existing_service
191191
else:
192-
try:
193-
NEO4J_SERVICE = Neo4jService(auth=NEO4J_AUTH, image=request.param, n_cores=NEO4J_CORES, n_replicas=NEO4J_REPLICAS)
194-
NEO4J_SERVICE.start(timeout=300)
195-
except urllib.error.HTTPError as error:
196-
# pytest.skip(str(error))
197-
pytest.xfail(str(error) + " " + request.param)
192+
NEO4J_SERVICE = Neo4jService(auth=NEO4J_AUTH, image=request.param, n_cores=NEO4J_CORES, n_replicas=NEO4J_REPLICAS)
193+
NEO4J_SERVICE.start(timeout=300)
198194
yield NEO4J_SERVICE
199195
if NEO4J_SERVICE is not None:
200196
NEO4J_SERVICE.stop(timeout=300)

0 commit comments

Comments
 (0)