Skip to content

Commit c1050fa

Browse files
jlara310kurtisvg
authored andcommitted
Update google-cloud-firestore dependency to 0.81.0-beta (GoogleCloudPlatform#1345)
* Update google-cloud-firestore dependency to 0.81.0-beta * Fix testUpdateServerTimestamp. Directly Use getDate() method instead of making a map first.
1 parent 6bb16d1 commit c1050fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

firestore/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<dependency>
4646
<groupId>com.google.cloud</groupId>
4747
<artifactId>google-cloud-firestore</artifactId>
48-
<version>0.70.0-beta</version>
48+
<version>0.81.0-beta</version>
4949
</dependency>
5050
<!-- [END fs-maven] -->
5151

firestore/src/test/java/com/example/firestore/snippets/ManageDataSnippetsIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ public void testUpdateNestedFields() throws Exception {
125125
public void testUpdateServerTimestamp() throws Exception {
126126
manageDataSnippets.updateServerTimestamp();
127127
DocumentReference docRef = db.collection("objects").document("some-id");
128-
Map<String, Object> data = getDocumentDataAsMap(docRef);
129-
assertTrue(data.get("timestamp") instanceof Date);
128+
DocumentSnapshot data = getDocumentData(docRef);
129+
assertTrue(data.getDate("timestamp") instanceof Date);
130130
}
131131

132132
@Test

0 commit comments

Comments
 (0)