diff --git a/orcid-core/src/test/java/org/orcid/core/manager/impl/RegistrationManagerImplTest.java b/orcid-core/src/test/java/org/orcid/core/manager/impl/RegistrationManagerImplTest.java index 30348283d82..bda40388b09 100644 --- a/orcid-core/src/test/java/org/orcid/core/manager/impl/RegistrationManagerImplTest.java +++ b/orcid-core/src/test/java/org/orcid/core/manager/impl/RegistrationManagerImplTest.java @@ -476,6 +476,8 @@ public void testRegisterWithAffiliationTest() { List employmentSummaryList = affiliationsManager.getEmploymentSummaryList(userOrcid); assertNotNull(employmentSummaryList); assertEquals(1, employmentSummaryList.size()); + // Cleanup + affiliationsManager.removeAffiliation(userOrcid, employmentSummaryList.get(0).getPutCode()); } private Registration createRegistrationForm(String email, boolean claimed) {