fix: add retry kms acc tests

main
William Beuil 2022-06-28 14:57:37 +02:00
parent cde2d4c9af
commit eb36fc4a25
No known key found for this signature in database
GPG Key ID: BED2072C5C2BF537
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package aws_test
import ( import (
"testing" "testing"
"time"
"github.com/snyk/driftctl/test" "github.com/snyk/driftctl/test"
"github.com/snyk/driftctl/test/acceptance" "github.com/snyk/driftctl/test/acceptance"
@ -17,6 +18,7 @@ func TestAcc_Aws_KMSKey(t *testing.T) {
Env: map[string]string{ Env: map[string]string{
"AWS_REGION": "us-east-1", "AWS_REGION": "us-east-1",
}, },
ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
Check: func(result *test.ScanResult, stdout string, err error) { Check: func(result *test.ScanResult, stdout string, err error) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)