From: Shawn O. Pearce Date: Thu, 1 Dec 2011 01:40:10 +0000 (-0800) Subject: Fix HTTP unit tests X-Git-Tag: v1.2.0.201112221803-r~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F04%2F4704%2F1;p=jgit.git Fix HTTP unit tests I modified the way errors are returned, and this particular test is now getting a different access denied response. The new text happens to be what I intended to have here, so update the test. Change-Id: I53f8410ca0a52755d80473cd5cbcdb4d8502febf --- diff --git a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java index 35989e88eb..8641c3ad0f 100644 --- a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java +++ b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java @@ -368,8 +368,7 @@ public class HttpClientTests extends HttpTestCase { t.openFetch(); fail("connection opened even though service disabled"); } catch (TransportException err) { - String exp = smartAuthNoneURI - + ": git-upload-pack not permitted"; + String exp = smartAuthNoneURI + ": Git access forbidden"; assertEquals(exp, err.getMessage()); } } finally {