Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Try popping environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrlee committed Sep 21, 2017
1 parent d35c2dd commit 44c3afd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_marathon_lb.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ def test_config_env_template(self):
ssl_certs = ""
templater = marathon_lb.ConfigTemplater()

_environ = dict(os.environ)
os.environ["HAPROXY_HTTP_FRONTEND_HEAD"] = '''
frontend changed_frontend
bind *:80
Expand All @@ -123,8 +122,7 @@ def test_config_env_template(self):
config = marathon_lb.config(apps, groups, bind_http_https,
ssl_certs, templater)

os.environ.clear()
os.environ.update(_environ)
os.environ.pop("HAPROXY_HTTP_FRONTEND_HEAD")

expected = self.base_config + '''
frontend changed_frontend
Expand Down

0 comments on commit 44c3afd

Please sign in to comment.