Skip to content

Commit

Permalink
Increased resource deletion delay.
Browse files Browse the repository at this point in the history
  • Loading branch information
hollerloudly committed Dec 7, 2021
1 parent 24373b9 commit 1af6b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sematext/common_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,14 +428,14 @@ func ConfirmMonitorDestructionDefault(rtf ResourceTestFixtureDefault) resource.T

for _, rs = range s.RootModule().Resources {

if !strings.HasPrefix(rs.Type, "sematext_") { // TODO Consider shift to template and make check tighter after MVP
if !strings.HasPrefix(rs.Type, "sematext_") {
continue
}
if id, err = strconv.ParseInt(rs.Primary.ID, 10, 64); err != nil {
return err
}

time.Sleep(time.Second * 4) // TODO - workaround for cache latency on SC API, no longer required, confirm and obsolete after MVP.
time.Sleep(time.Second * 10) // TODO - workaround for cache latency on SC API, no longer required, confirm and obsolete after MVP.

if appResponse, _, err = client.AppsAPI.GetUsingGET(context.Background(), id); err != nil {
return fmt.Errorf("ConfirmMonitorDestructionDefault : Failed to pull app in checking monitor %s, %s", rtf.StatePath, err)
Expand Down

0 comments on commit 1af6b61

Please sign in to comment.