Skip to content

Commit ed53dd0

Browse files
test(alias): improve cluster propagation test error handling
Signed-off-by: Riley Des <riley.desserre@improving.com>
1 parent e76ca54 commit ed53dd0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

integration/test_ft_alias_cluster.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,11 @@ def _alias_search_ready():
273273
result = node.execute_command(
274274
"FT.SEARCH", ALIAS_NAME, "@category:{books}"
275275
)
276-
if result[0] < 1:
277-
return False
278-
except Exception:
276+
except ResponseError:
277+
# Alias may not yet be resolvable on this node; keep
278+
# polling. Any other exception should surface.
279+
return False
280+
if result[0] < 1:
279281
return False
280282
return True
281283

0 commit comments

Comments
 (0)