Skip to content

Commit

Permalink
update system test
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Chen committed May 11, 2020
1 parent 2ea0ae9 commit 41caf6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -2,3 +2,7 @@ target/
.idea/
*.iml
__pycache__/
.project
.settings
.factorypath
.classpath
Expand Up @@ -30,7 +30,9 @@
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.SettableApiFuture;
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.api.gax.rpc.ApiStreamObserver;
import com.google.auth.oauth2.GoogleCredentials;
import com.google.cloud.Timestamp;
import com.google.cloud.firestore.CollectionReference;
import com.google.cloud.firestore.DocumentReference;
Expand All @@ -57,6 +59,8 @@
import com.google.cloud.firestore.WriteResult;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
Expand Down Expand Up @@ -1148,9 +1152,9 @@ public void inQueriesWithDocumentId() throws Exception {
setDocument("c", map("count", 3));

QuerySnapshot querySnapshot =
randomColl.whereIn("zip", Arrays.<Object>asList(doc1.getId(), doc2)).get().get();
randomColl.whereIn(FieldPath.documentId(), Arrays.<Object>asList(doc1.getId(), doc2)).get().get();

assertEquals(asList("a", "c"), querySnapshotToIds(querySnapshot));
assertEquals(asList("a", "b"), querySnapshotToIds(querySnapshot));
}

@Test
Expand Down

0 comments on commit 41caf6f

Please sign in to comment.