Skip to content

Commit

Permalink
Fix test_disk_eviction_with_node_level_soft_anti_affinity_disabled (#…
Browse files Browse the repository at this point in the history
…1607)

Longhorn 7210

Signed-off-by: Eric Weber <[email protected]>
  • Loading branch information
ejweber authored Dec 15, 2023
1 parent 29d0711 commit 6b789f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manager/integration/tests/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -2626,6 +2626,14 @@ def test_disk_eviction_with_node_level_soft_anti_affinity_disabled(client, # NOQ
replica_path = test_disk_path + '/replicas'
assert os.path.isdir(replica_path)

# Since https://github.com/longhorn/longhorn-manager/pull/2138, the node
# controller is responsible for triggering replica eviction. If the timing
# of the node controller and node monitor are off, the node controller
# may take extra time to do so. Wait for evidence eviction is in progress
# before proceeding.
wait_for_volume_replica_count(client, volume.name,
volume.numberOfReplicas + 1)

for i in range(common.RETRY_COMMAND_COUNT):
if len(os.listdir(replica_path)) > 0:
break
Expand Down

0 comments on commit 6b789f9

Please sign in to comment.