Skip to content
Snippets Groups Projects
Commit cfe96666 authored by Yash Dholakia's avatar Yash Dholakia
Browse files

Delete legal tag utils during tear down

parent 9e255e33
No related branches found
No related tags found
1 merge request!417AWS sync dev to master
......@@ -52,7 +52,9 @@ public class TestNotificationsEndpoint extends TestBase {
@After
@Override
public void tearDown() {
public void tearDown() throws Exception {
LegalTagUtils.delete(LEGAL_TAG_TEST, testUtils.getOpsToken(), true);
LegalTagUtils.delete(LEGAL_TAG, testUtils.getOpsToken(), false);
this.testUtils = null;
}
......@@ -123,7 +125,7 @@ public class TestNotificationsEndpoint extends TestBase {
int exitValue = process.exitValue();
assertEquals(exitValue, 1);
} catch (Exception e) {
System.out.println("Error while verifying notification service. Error = " + e.getMessage() + " Stack Trace= " + Arrays.toString(e.getStackTrace()));
System.out.println("Error while verifying notification service" + Arrays.toString(e.getStackTrace()));
} finally {
awssubscriptionService.delete(subscriptionId);
}
......@@ -147,7 +149,7 @@ public class TestNotificationsEndpoint extends TestBase {
int exitValue = process.exitValue();
assertEquals(exitValue, 0);
} catch (Exception e) {
System.out.println("Error while verifying notification service. Error = " + e.getMessage() + " Stack Trace= " + Arrays.toString(e.getStackTrace()));
System.out.println("Error while verifying notification service" + Arrays.toString(e.getStackTrace()));
} finally {
awssubscriptionService.delete(subscriptionId);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment