Skip to content

Commit d33f475

Browse files
committed
fix(tflinter): remove sleeps
1 parent 1356249 commit d33f475

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

scaleway/resource_container_test.go

-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"fmt"
99
"io"
1010
"testing"
11-
"time"
1211

1312
"github.com/docker/docker/api/types"
1413
"github.com/docker/docker/client"
@@ -332,8 +331,6 @@ func testAddImageToRegistryScaleway(tt *TestTools, n string) resource.TestCheckF
332331
if errorMessage.Error != "" {
333332
return fmt.Errorf(errorMessage.Error)
334333
}
335-
// wait loading images
336-
time.Sleep(2 * time.Second)
337334
}
338335

339336
err = cli.ImageTag(ctx, "docker.io/library/alpine:latest", ns.Endpoint+"/alpine:test")
@@ -362,9 +359,6 @@ func testAddImageToRegistryScaleway(tt *TestTools, n string) resource.TestCheckF
362359
if errorMessage.Error != "" {
363360
return fmt.Errorf(errorMessage.Error)
364361
}
365-
366-
// wait loading images
367-
time.Sleep(2 * time.Second)
368362
}
369363

370364
_, err = api.WaitForNamespace(&registry.WaitForNamespaceRequest{

0 commit comments

Comments
 (0)