diff --git a/android/CouchbaseLite/src/androidTest/java/com/couchbase/lite/QueryTest.java b/android/CouchbaseLite/src/androidTest/java/com/couchbase/lite/QueryTest.java
index <HASH>..<HASH> 100644
--- a/android/CouchbaseLite/src/androidTest/java/com/couchbase/lite/QueryTest.java
+++ b/android/CouchbaseLite/src/androidTest/java/com/couchbase/lite/QueryTest.java
@@ -142,7 +142,7 @@ public class QueryTest extends BaseTest {
         save(doc10);
 
         db.setDocumentExpiration("doc10", dto20); //deleted doc
-        db.delete(doc20);
+        db.delete(doc10);
 
         doc1.setInt("answer", 42);
         doc1.setString("a", "string");
Query test fix: fix passing the none-existed document in document deleted method.