Skip to content

Commit 9096dc2

Browse files
committed
test(regression): fix test_drain_with_block_for_eviction_if_contains_last_replica_success
Longhorn 13103 Signed-off-by: Derek Su <derek.su@suse.com>
1 parent f9c5432 commit 9096dc2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

manager/integration/tests/test_node.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,9 +3137,10 @@ def test_drain_with_block_for_eviction_if_contains_last_replica_success(client,
31373137
assert checksum2 == test_data_checksum2
31383138

31393139
# cleanup disks
3140-
lht_hostId = get_self_host_id()
3141-
cleanup_selected_disks_on_node(client, lht_hostId,
3142-
disk_name)
3140+
if DATA_ENGINE == "v2":
3141+
lht_hostId = get_self_host_id()
3142+
cleanup_selected_disks_on_node(client, lht_hostId,
3143+
disk_name)
31433144

31443145

31453146
@pytest.mark.v2_volume_test # NOQA

0 commit comments

Comments
 (0)