Skip to content

Commit

Permalink
use _unset_env_vars during teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
fwojciec committed Oct 24, 2020
1 parent 061f45b commit 3dd017e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dsemu/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,9 @@ def stop(self) -> None:
"""
if self._instance is not None and self._is_healthy():
self._request(SHUTDOWN_ENDPOINT, method="POST")
os.unsetenv("DATASTORE_EMULATOR_HOST")
os.unsetenv("DATASTORE_PROJECT_ID")
self._unset_env_vars()
self._instance.terminate()
self._instance = None

self._host = None
self._project_id = None
self._gcloud = None
Expand Down

0 comments on commit 3dd017e

Please sign in to comment.