aws: Only fail on missing TF_ACC_ID if we're actually running acc. tests
This commit is contained in:
parent
cf98cbc9ad
commit
1335131daa
|
@ -219,7 +219,7 @@ func TestAccAWSRouteTable_vpcPeering(t *testing.T) {
|
|||
var v ec2.RouteTable
|
||||
|
||||
acctId := os.Getenv("TF_ACC_ID")
|
||||
if acctId == "" {
|
||||
if acctId == "" && os.Getenv(resource.TestEnvVar) != "" {
|
||||
t.Fatal("Error: Test TestAccAWSRouteTable_vpcPeering requires an Account ID in TF_ACC_ID ")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue