From 8ade29ed1d78d8d3e6cdff2e8e754baaa05e8d6b Mon Sep 17 00:00:00 2001 From: Denver Coneybeare Date: Fri, 3 Oct 2025 10:44:12 -0400 Subject: [PATCH] firestore: test: fix ServerTimestampTest.java that was accidentally broken by #6235 The test failure fixed by this PR is: ``` com.google.firebase.firestore.ServerTimestampTest > testPOJOWithWrongType[emulator-5554 - 12] FAILED org.junit.ComparisonFailure: expected:<...ring instead of Date[ or Timestamp].> but was:<...ring instead of Date[, Timestamp, or Instant].> at org.junit.Assert.assertEquals(Assert.java:117) ``` It simply updates the expected exception message as follows: ``` - "java.lang.String instead of Date or Timestamp.", + "java.lang.String instead of Date, Timestamp, or Instant.", ``` --- .../java/com/google/firebase/firestore/ServerTimestampTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firebase-firestore/src/androidTest/java/com/google/firebase/firestore/ServerTimestampTest.java b/firebase-firestore/src/androidTest/java/com/google/firebase/firestore/ServerTimestampTest.java index fb38935ddc2..3bdb2f082ee 100644 --- a/firebase-firestore/src/androidTest/java/com/google/firebase/firestore/ServerTimestampTest.java +++ b/firebase-firestore/src/androidTest/java/com/google/firebase/firestore/ServerTimestampTest.java @@ -363,7 +363,7 @@ public void testPOJOWithWrongType() { } catch (IllegalArgumentException e) { assertEquals( "Field timestamp is annotated with @ServerTimestamp but is class " - + "java.lang.String instead of Date or Timestamp.", + + "java.lang.String instead of Date, Timestamp, or Instant.", e.getMessage()); } }