Skip to content

Commit

Permalink
test: fix 'etcd_helper'
Browse files Browse the repository at this point in the history
Added default value to 'os.getenv()', so tests won't fail if 'ETCD_PATH' is not set.
  • Loading branch information
better0fdead authored and psergee committed Jun 28, 2024
1 parent d9138fa commit ff03d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/etcd_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, host, port, workdir):

def start(self):
popen = subprocess.Popen(
[os.getenv("ETCD_PATH") + "etcd"],
[os.getenv("ETCD_PATH", default="") + "etcd"],
env={"ETCD_LISTEN_CLIENT_URLS": self.endpoint,
"ETCD_ADVERTISE_CLIENT_URLS": self.endpoint,
"PATH": os.getenv("PATH")},
Expand Down

0 comments on commit ff03d11

Please sign in to comment.