Skip to content

Commit

Permalink
expand comment
Browse files Browse the repository at this point in the history
  • Loading branch information
KenSpur committed Jan 26, 2024
1 parent c911eb2 commit 799d815
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func applicationPreAuthorizedResourceDelete(ctx context.Context, d *pluginsdk.Re
return tf.ErrorDiagF(err, "Removing pre-authorized application %q from application with object ID %q", id.AppId, id.ObjectId)
}

// Random delay before checking if the pre-authorized application was removed
// Random delay to mitigate race conditions, and to allow time for the posible concurent operations to complete before validating
randomDelay := time.Duration(rand.Intn(1000)) * time.Millisecond
time.Sleep(randomDelay)

Expand Down

0 comments on commit 799d815

Please sign in to comment.