From 8b76369fb44bfd863b27bcede453d676905f52e5 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Wed, 26 Oct 2011 17:12:50 -0400 Subject: [PATCH] Properly catch Not Allowed (405) and Unknown Request (501) errors --- tests/com/gitblit/tests/TicgitUtilsTest.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/com/gitblit/tests/TicgitUtilsTest.java b/tests/com/gitblit/tests/TicgitUtilsTest.java index 792c426..9f5a488 100644 --- a/tests/com/gitblit/tests/TicgitUtilsTest.java +++ b/tests/com/gitblit/tests/TicgitUtilsTest.java @@ -33,7 +33,7 @@ RefModel branch = TicgitUtils.getTicketsBranch(repository); repository.close(); assertTrue("Ticgit branch does not exist!", branch != null); - + repository = GitBlitSuite.getHelloworldRepository(); branch = TicgitUtils.getTicketsBranch(repository); repository.close(); @@ -60,7 +60,7 @@ assertTrue(commentA.hashCode() == commentA.text.hashCode()); } } - + repository = GitBlitSuite.getHelloworldRepository(); List<TicketModel> ticketsC = TicgitUtils.getTickets(repository); repository.close(); -- Gitblit v1.9.1