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 345b77b commit 15301c7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -763,13 +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).
// TODO: enable this check after resolving issue
// https://github.com/ydb-platform/nbs/issues/2008.
// testcommon.WaitForCheckpointsAreEmpty(t, ctx, diskID)
if createErr != nil {
testcommon.WaitForCheckpointsAreEmpty(t, ctx, diskID)
}

testcommon.CheckConsistency(t, ctx)
}

0 comments on commit 15301c7

Please sign in to comment.