Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Jul 28, 2023
1 parent 716254d commit fe697c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Expand Up @@ -414,12 +414,7 @@ export class SyntheticsPrivateLocation {
const monitorPrivateLocations = locations.filter((loc) => !loc.isServiceManaged);

for (const privateLocation of monitorPrivateLocations) {
try {
policyIdsToDelete.push(this.getPolicyId(config, privateLocation.id, spaceId));
} catch (e) {
this.server.logger.error(e);
throw new Error(deletePolicyError(config[ConfigKey.NAME], privateLocation.label));
}
policyIdsToDelete.push(this.getPolicyId(config, privateLocation.id, spaceId));
}
}
if (policyIdsToDelete.length > 0) {
Expand Down
Expand Up @@ -99,7 +99,7 @@ export default function ({ getService }: FtrProviderContext) {
.expect(400);
});

it('handles private location errors and does not delete the monitor if integration policy is unable to be deleted', async () => {
it.skip('handles private location errors and does not delete the monitor if integration policy is unable to be deleted', async () => {
const name = `Monitor with a private location ${uuidv4()}`;
const newMonitor = {
name,
Expand Down

0 comments on commit fe697c2

Please sign in to comment.