Skip to content

Commit

Permalink
Test sleep after create grant
Browse files Browse the repository at this point in the history
  • Loading branch information
bangau1 committed May 7, 2021
1 parent 298d149 commit 7549c0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mysql/resource_grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"log"
"regexp"
"strings"
"time"

"github.com/hashicorp/go-version"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
Expand Down Expand Up @@ -228,6 +229,8 @@ func CreateGrant(d *schema.ResourceData, meta interface{}) error {

d.SetId(id)

time.Sleep(3 * time.Second)

return ReadGrant(d, meta)
}

Expand Down

0 comments on commit 7549c0a

Please sign in to comment.