Skip to content

Commit

Permalink
Fixed VM Snapshot Extension test failure - Expected <10> to be less t…
Browse files Browse the repository at this point in the history
…han <10>, but was not (#3503)

* removed redundant count increment

* Updated count

* Updated code
  • Loading branch information
vipunj authored Nov 14, 2024
1 parent a8affe4 commit 6c43900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions microsoft/testsuites/vm_extensions/vmsnapshot_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def _verify_vmsnapshot_extension(
rpc_status = response.provisioning_state
assert_that(rpc_status, "RPC creation failed").is_equal_to("Succeeded")
count = 0
for count in range(10):
for _ in range(10):
try:
# create a restore point for the VM
restore_point = "rp_" + datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
Expand Down Expand Up @@ -265,7 +265,7 @@ def _verify_vmsnapshot_extension(
else:
raise e
time.sleep(1)
count = count + 1
count += 1
assert_that(count, "Restore point creation failed.").is_less_than(10)

def _find_extension_dir(self, node: Node) -> str:
Expand Down

0 comments on commit 6c43900

Please sign in to comment.