]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/pages/account/TestMailManagement.java
Fix Cache punging for local tests.
[gigi.git] / tests / org / cacert / gigi / pages / account / TestMailManagement.java
index 5ad75a60ee23af66323dce418a27a9b74457766c..9c8ce391eb905dfffb4acea727ab07e19818c468 100644 (file)
@@ -71,9 +71,9 @@ public class TestMailManagement extends ManagedTest {
 
     @Test
     public void testMailSetDefaultWeb() throws MalformedURLException, UnsupportedEncodingException, IOException, InterruptedException, GigiApiException {
-        ObjectCache.clearAllCashes();
         EmailAddress adrr = createVerifiedEmail(u);
         assertNull(executeBasicWebInteraction(cookie, path, "makedefault&emailid=" + adrr.getId()));
+        ObjectCache.clearAllCaches();
         assertEquals(User.getById(u.getId()).getEmail(), adrr.getAddress());
     }