File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ import (
1515 "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/iot"
1616)
1717
18+ var DestroyWaitTimeout = 3 * time .Minute
19+
1820func TestAccHub_Minimal (t * testing.T ) {
1921 tt := acctest .NewTestTools (t )
2022 defer tt .Cleanup ()
@@ -114,7 +116,7 @@ func isHubDestroyed(tt *acctest.TestTools) resource.TestCheckFunc {
114116 return func (state * terraform.State ) error {
115117 ctx := context .Background ()
116118
117- return retry .RetryContext (ctx , kdestroywaittimeout , func () * retry.RetryError {
119+ return retry .RetryContext (ctx , DestroyWaitTimeout , func () * retry.RetryError {
118120 for _ , rs := range state .RootModule ().Resources {
119121 if rs .Type != "scaleway_iot_hub" {
120122 continue
Original file line number Diff line number Diff line change 44 "context"
55 "fmt"
66 "testing"
7- "time"
87
98 "github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
109 "github.com/hashicorp/terraform-plugin-testing/helper/resource"
@@ -15,8 +14,6 @@ import (
1514 "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/mongodb"
1615)
1716
18- var DestroyWaitTimeout = 3 * time .Minute
19-
2017func TestAccMongoDBUser_Basic (t * testing.T ) {
2118 tt := acctest .NewTestTools (t )
2219 defer tt .Cleanup ()
You can’t perform that action at this time.
0 commit comments