Skip to content

Commit 532a1d6

Browse files
Test fix
1 parent 2669b3f commit 532a1d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

firebase-firestore/src/test/java/com/google/firebase/firestore/UserDataWriterTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ public void testConvertsDateValue() {
161161
Value value = wrap(d);
162162
assertValueType(Value.ValueTypeCase.TIMESTAMP_VALUE, value);
163163
Object convertedValue = dateWriter.convertValue(value);
164-
assertEquals(d, convertedValue);
164+
assertTrue(convertedValue instanceof Timestamp);
165+
assertEquals(d, ((Timestamp)convertedValue).toDate());
165166
}
166167
}
167168

0 commit comments

Comments
 (0)