Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9e81e1a

Browse files
committedJan 11, 2018
Fix test failures
Change-Id: Ia886868d51dcd2a66561845fca6fb52a220b7227
1 parent d3c54a5 commit 9e81e1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎firestore/src/test/java/com/example/firestore/snippets/RetrieveDataSnippetsIT.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import com.google.cloud.firestore.FirestoreOptions;
2929
import com.google.cloud.firestore.QuerySnapshot;
3030
import java.util.ArrayList;
31+
import java.util.HashMap;
3132
import java.util.HashSet;
3233
import java.util.List;
3334
import java.util.Map;
@@ -104,7 +105,9 @@ public void testRetrieveAllDocuments() throws Exception {
104105
@Test
105106
public void testGetSubcollections() throws Exception {
106107
// Add a landmark subcollection
107-
db.document("cities/SF/landmarks/example").set(new Object()).get();
108+
Map<String, String> data = new HashMap<>();
109+
data.put("foo", "bar");
110+
db.document("cities/SF/landmarks/example").set(data).get();
108111

109112
Iterable<CollectionReference> collections =
110113
retrieveDataSnippets.getCollections();

0 commit comments

Comments
 (0)
Please sign in to comment.