]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/testUtils/ManagedTest.java
Enable cache-clearance for autonomous test-launches
[gigi.git] / tests / org / cacert / gigi / testUtils / ManagedTest.java
index 2303ef70a3dcb8b7b96eb61535e2d1f32e9ca186..6f6dfcf4e6035c8c603926147bca91528343f169 100644 (file)
@@ -161,14 +161,13 @@ public class ManagedTest extends ConfiguredTest {
     public static void clearCaches() throws IOException {
         ObjectCache.clearAllCaches();
         String type = testProps.getProperty("type");
-        if (type.equals("local")) {
-            URL u = new URL("https://" + getServerName() + "/manage");
-            u.openConnection().getHeaderField("Location");
-        }
+        URL u = new URL("https://" + getServerName() + "/manage");
+        u.openConnection().getHeaderField("Location");
     }
 
     private static Properties generateMainProps() {
         Properties mainProps = new Properties();
+        mainProps.setProperty("testrunner", "true");
         mainProps.setProperty("host", "127.0.0.1");
         mainProps.setProperty("name.secure", testProps.getProperty("name.secure"));
         mainProps.setProperty("name.www", testProps.getProperty("name.www"));