From 89549faaafd7b21a44fe94ed35a848a7a4fff27c Mon Sep 17 00:00:00 2001 From: Kurtis Van Gent Date: Fri, 10 Nov 2017 08:58:29 -0800 Subject: [PATCH] Added better logging to troubleshoot Firestore issues. --- .../com/example/firestore/snippets/ManageDataSnippetsIT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firestore/src/test/java/com/example/firestore/snippets/ManageDataSnippetsIT.java b/firestore/src/test/java/com/example/firestore/snippets/ManageDataSnippetsIT.java index c0a95fdd651..31485991352 100644 --- a/firestore/src/test/java/com/example/firestore/snippets/ManageDataSnippetsIT.java +++ b/firestore/src/test/java/com/example/firestore/snippets/ManageDataSnippetsIT.java @@ -165,7 +165,8 @@ public void testTransactionReturnsInfo() throws Exception { assertEquals(info, "Population increased to 51"); try { info = manageDataSnippets.returnInfoFromTransaction(5000001L); - assertTrue("Should never get here", false); + assertTrue("returnInfoFromTransaction should have failed," + + " instead returned info: " + info, false); } catch (Exception e) { assertTrue(e.getMessage().contains("Sorry! Population is too big.")); }