fix: add retry kms acc tests
parent
cde2d4c9af
commit
eb36fc4a25
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue