Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/integration/standard/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1681,6 +1681,11 @@ def test_reprepare_after_host_is_down(self):
wait_until(
lambda: mock_handler.get_message_count('debug', 'Preparing all known prepared statements') >= 1,
delay=0.5, max_attempts=20)
# Statements are prepared before the session pools open and the
# host is marked up.
wait_until(
lambda: self.cluster.metadata.get_host('127.0.0.1').is_up,
delay=0.5, max_attempts=20)

results = self.session.execute(prepared_statement, (1,), execution_profile="only_first")
assert results.one() == (1, )
Expand Down