DirCacheCheckoutTest#testCheckoutHierarchy: Add missing call to fail()

Error Prone reports:

  Not calling fail() when expecting an exception masks bugs

See https://errorprone.info/bugpattern/MissingFail

Change-Id: I463510342bb6e6b99b31a0fe264d953340784393
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
David Pursehouse 2018-09-29 12:59:03 +09:00
parent 00698f9e27
commit f02844caae
1 changed files with 1 additions and 0 deletions

View File

@ -929,6 +929,7 @@ public void testCheckoutHierarchy() throws IOException {
"e/g3"));
try {
checkout();
fail("did not throw CheckoutConflictException");
} catch (CheckoutConflictException e) {
assertWorkDir(mkmap("a", "a", "b/c", "b/c", "d", "d", "e/f",
"e/f", "e/g", "e/g3"));