From acba234ffe4d901dc09324d3dcb65b0f8315f8fd Mon Sep 17 00:00:00 2001 From: Thoughtseize1 Date: Fri, 13 Dec 2024 12:19:44 +0100 Subject: [PATCH] Test fix --- .../stop_replication_consistency_group.py" | 4 ++-- .../stop_replication_consistency_group.py" | 4 ++-- .../client_library/snippets/tests/test_consistency_groups.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git "a/compute/client_library/recipes/disks/\321\201onsistency_groups/stop_replication_consistency_group.py" "b/compute/client_library/recipes/disks/\321\201onsistency_groups/stop_replication_consistency_group.py" index 060351afdc15..d4fc90f141ac 100644 --- "a/compute/client_library/recipes/disks/\321\201onsistency_groups/stop_replication_consistency_group.py" +++ "b/compute/client_library/recipes/disks/\321\201onsistency_groups/stop_replication_consistency_group.py" @@ -14,11 +14,11 @@ # flake8: noqa -# +# # # # -# +# diff --git "a/compute/client_library/snippets/disks/\321\201onsistency_groups/stop_replication_consistency_group.py" "b/compute/client_library/snippets/disks/\321\201onsistency_groups/stop_replication_consistency_group.py" index fc3168e539d5..83056d9c35f4 100644 --- "a/compute/client_library/snippets/disks/\321\201onsistency_groups/stop_replication_consistency_group.py" +++ "b/compute/client_library/snippets/disks/\321\201onsistency_groups/stop_replication_consistency_group.py" @@ -19,7 +19,7 @@ # directory and apply your changes there. -# [START compute_consistency_group_remove_disk] +# [START compute_consistency_group_stop_replication] from __future__ import annotations import sys @@ -101,4 +101,4 @@ def stop_replication_consistency_group(project_id, location, consistency_group_n return True -# [END compute_consistency_group_remove_disk] +# [END compute_consistency_group_stop_replication] diff --git a/compute/client_library/snippets/tests/test_consistency_groups.py b/compute/client_library/snippets/tests/test_consistency_groups.py index 4cb5a1100a40..91ad3ac8697e 100644 --- a/compute/client_library/snippets/tests/test_consistency_groups.py +++ b/compute/client_library/snippets/tests/test_consistency_groups.py @@ -76,7 +76,7 @@ def test_add_remove_and_list_disks_consistency_group( consistency_group_name=autodelete_consistency_group.name, consistency_group_region=REGION, ) - assert disks[0].name == autodelete_regional_blank_disk.name + assert any(disk.name == autodelete_regional_blank_disk.name for disk in disks) # Remove disk from consistency group remove_disk_consistency_group( project_id=PROJECT_ID,