-// if (BuildConfig.DEBUG) {
-// try {
-// Thread.sleep(1500);
-// if (Math.random() > 0.3)
-// throw new RuntimeException("Simulated test exception");
-// }
-// catch (InterruptedException ex) {
-// Logger.debug("network", ex.toString());
-// }
-//
-// return true;
-// }
+ if (simulate) {
+ try {
+ Thread.sleep(1500);
+ if (Math.random() > 0.3)
+ throw new RuntimeException("Simulated test exception");
+ }
+ catch (InterruptedException ex) {
+ Logger.debug("network", ex.toString());
+ }
+
+ return true;
+ }