8000 Revert change back to sleep to make tests pass · saltstack/salt@a7dfc2e · GitHub
[go: up one dir, main page]

Skip to content

Commit a7dfc2e

Browse files
committed
Revert change back to sleep to make tests pass
1 parent 619bff2 commit a7dfc2e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

tests/pytests/pkg/upgrade/test_salt_upgrade.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,15 @@ def salt_test_upgrade(
7373
# Upgrade Salt (inc. minion, master, etc.) from previous version and test
7474
install_salt.install(upgrade=True)
7575

76-
start = time.monotonic()
77-
while True:
78-
ret = salt_call_cli.run("--local", "test.version", _timeout=10)
79-
if ret.returncode == 0:
80-
break
81-
if time.monotonic() - start > 60:
82-
break
76+
# XXX: Come up with a faster way of knowing whne we are ready.
77+
# start = time.monotonic()
78+
# while True:
79+
# ret = salt_call_cli.run("--local", "test.version", _timeout=10)
80+
# if ret.returncode == 0:
81+
# break
82+
# if time.monotonic() - start > 60:
83+
# break
84+
time.sleep(60)
8385

8486
ret = salt_call_cli.run("--local", "test.version")
8587
assert ret.returncode == 0

0 commit comments

Comments
 (0)
0