Skip to content

Commit 89549fa

Browse files
committed
Added better logging to troubleshoot Firestore issues.
1 parent 54537d2 commit 89549fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ public void testTransactionReturnsInfo() throws Exception {
165165
assertEquals(info, "Population increased to 51");
166166
try {
167167
info = manageDataSnippets.returnInfoFromTransaction(5000001L);
168-
assertTrue("Should never get here", false);
168+
assertTrue("returnInfoFromTransaction should have failed,"
169+
+ " instead returned info: " + info, false);
169170
} catch (Exception e) {
170171
assertTrue(e.getMessage().contains("Sorry! Population is too big."));
171172
}

0 commit comments

Comments
 (0)