Skip to content

Commit b6d57b4

Browse files
committed
chore: fix monitoring test
1 parent bbd0854 commit b6d57b4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/templates/kuttl/smoke/test_zookeeper.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ def check_monitoring(hosts):
6464
url = host + ":9505"
6565
response = try_get(url)
6666

67-
if response.ok:
68-
continue
69-
else:
67+
if not response.ok:
7068
print("Error for [" + url + "]: could not access monitoring")
7169
exit(-1)
7270

@@ -81,7 +79,6 @@ def check_monitoring(hosts):
8179
else:
8280
print("Error for [" + url + "]: missing metrics")
8381
exit(-1)
84-
continue
8582
else:
8683
print("Error for [" + url + "]: could not access monitoring")
8784
exit(-1)

0 commit comments

Comments
 (0)