Skip to content

Commit

Permalink
fix TestSnapshotServiceDeleteSnapshotWhenCreationIsInFlight
Browse files Browse the repository at this point in the history
  • Loading branch information
Rattysed committed Feb 5, 2025
1 parent a2e5de5 commit 57554dd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -763,11 +763,13 @@ func TestSnapshotServiceDeleteSnapshotWhenCreationIsInFlight(t *testing.T) {
err = internal_client.WaitOperation(ctx, client, operation.Id)
require.NoError(t, err)

_ = internal_client.WaitOperation(ctx, client, createOp.Id)
createErr := internal_client.WaitOperation(ctx, client, createOp.Id)

// Should wait here because checkpoint is deleted on |createOp| operation
// cancel (and exact time of this event is unknown).
testcommon.WaitForCheckpointsAreEmpty(t, ctx, diskID)
if createErr != nil {
testcommon.WaitForCheckpointsAreEmpty(t, ctx, diskID)
}

testcommon.CheckConsistency(t, ctx)
}

0 comments on commit 57554dd

Please sign in to comment.