Skip to content

Commit 34ae587

Browse files
committed
fix
1 parent caa3eb7 commit 34ae587

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

internal/services/iot/hub_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
1820
func 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

internal/services/mongodb/user_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
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-
2017
func TestAccMongoDBUser_Basic(t *testing.T) {
2118
tt := acctest.NewTestTools(t)
2219
defer tt.Cleanup()

0 commit comments

Comments
 (0)