if (Cache.getDefault("DEBUG_DELAY_SAVE", false))
{
- int n = 20;
+ int n = debugDelaySave;
int i = 0;
while (i < n)
{
if (Cache.getDefault("DEBUG_DELAY_SAVE", false))
{
- int n = 20;
+ int n = debugDelaySave;
int i = 0;
while (i < n)
{
}
return true;
}
+
+ // used for debugging and tests
+ private static int debugDelaySave = 20;
+
+ public static void setDebugDelaySave(int n)
+ {
+ debugDelaySave = n;
+ }
}