Skip to content

Commit

Permalink
Added better logging to troubleshoot Firestore issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisvg committed Nov 10, 2017
1 parent 54537d2 commit 89549fa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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."));
}
Expand Down

0 comments on commit 89549fa

Please sign in to comment.