Skip to content

Instantly share code, notes, and snippets.

@hegra
hegra / test.java
Created August 11, 2015 13:51
Test for crashing sync gateway can't find rev:
public void testDbCrash() throws Exception {
try {
boolean pushInitial = true;
boolean pullInitial = true;
boolean doDelete = true;
boolean pushNew = true;
//do push
Manager manager = new Manager(new AndroidContext(getSystemContext()), Manager.DEFAULT_OPTIONS);
URL url = new URL("http://*.com:4984/sync_gateway/");