fix: add retry logic to acc tests
parent
181e8a1a1b
commit
8400a9840d
|
@ -22,6 +22,7 @@ func TestAcc_Aws_Route(t *testing.T) {
|
|||
Env: map[string]string{
|
||||
"AWS_REGION": "us-east-1",
|
||||
},
|
||||
ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
|
||||
Check: func(result *test.ScanResult, stdout string, err error) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
|
@ -2,6 +2,7 @@ package aws_test
|
|||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/snyk/driftctl/test"
|
||||
"github.com/snyk/driftctl/test/acceptance"
|
||||
|
@ -17,6 +18,7 @@ func TestAcc_Aws_Subnet(t *testing.T) {
|
|||
Env: map[string]string{
|
||||
"AWS_REGION": "us-east-1",
|
||||
},
|
||||
ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
|
||||
Check: func(result *test.ScanResult, stdout string, err error) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
Loading…
Reference in New Issue