Skip to content

Commit

Permalink
Merge pull request #230 from ClearcodeHQ/dependabot/pip/mirakuru-2.2.0
Browse files Browse the repository at this point in the history
Bump mirakuru from 2.1.2 to 2.2.0
  • Loading branch information
fizyk committed Feb 19, 2020
2 parents 64f7896 + f21fe2f commit e10e07e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ unreleased
-------

- [cleanup] Drop support for python versions older than 3.6
- [fix] Adjust for mirakuru 2.2.0 and up


2.0.0
-------
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ pytest-cov==2.8.1
coverage==5.0.3 # pytest-cov
mock==4.0.1
port-for==0.4
mirakuru==2.1.2
mirakuru==2.2.0
elasticsearch==7.5.1
-e .[tests]
9 changes: 7 additions & 2 deletions src/pytest_elasticsearch/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import pytest
from elasticsearch import Elasticsearch
from mirakuru import ProcessExitedWithError

from pytest_elasticsearch.executor import (
ElasticSearchExecutor,
Expand Down Expand Up @@ -122,8 +123,12 @@ def elasticsearch_proc_fixture(request):
timeout=60,
)

with elasticsearch_executor:
yield elasticsearch_executor
elasticsearch_executor.start()
yield elasticsearch_executor
try:
elasticsearch_executor.stop()
except ProcessExitedWithError:
pass
shutil.rmtree(work_path)
shutil.rmtree(logs_path)

Expand Down

0 comments on commit e10e07e

Please sign in to comment.