Skip to content

Commit

Permalink
Add more verbose output for test_rolling_upgrade
Browse files Browse the repository at this point in the history
Should make it a bit easier to spot on which version an issue happened
if the test fails
  • Loading branch information
mfussenegger authored and matriv committed Jan 25, 2024
1 parent 759304a commit 3b86318
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/bwc/test_rolling_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
class RollingUpgradeTest(NodeProvider, unittest.TestCase):

def test_rolling_upgrade(self):
print("") # force newline for first print(path)
print("") # force newline for first print
for path in ROLLING_UPGRADES:
print(path)
print(f"From {path.from_version}")
with self.subTest(repr(path)):
try:
self.setUp()
Expand Down Expand Up @@ -93,6 +93,7 @@ def _test_rolling_upgrade(self, path, nodes):
expected_active_shards += shards

for idx, node in enumerate(cluster):
print(f" upgrade node {idx} to {path.to_version}")
new_node = self.upgrade_node(node, path.to_version)
cluster[idx] = new_node
with connect(new_node.http_url, error_trace=True) as conn:
Expand Down

0 comments on commit 3b86318

Please sign in to comment.