We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26472d5 commit c949bf4Copy full SHA for c949bf4
src/test/java/com/datadog/api/v1/client/api/AwsLogsIntegrationApiTest.java
@@ -84,8 +84,13 @@ public void cleanupAWSAccount() throws TestUtils.RetryException {
84
try {
85
AWSApi.deleteAWSAccount().body(uniqueAWSAccount).execute();
86
} catch (ApiException e) {
87
- System.out.println(String.format("Error deleting AWS Account: %s", e));
88
- return false;
+ if(e.getCode() == 400) {
+ System.out.println(String.format("Error deleting AWS Account: %s. The test was likely a unit test", e));
89
+ return true;
90
+ } else {
91
+ System.out.println(String.format("Error deleting AWS Account: %s", e));
92
+ return false;
93
+ }
94
}
95
return true;
96
});
0 commit comments