From cea935ab1b6caf52b31dfd4eae9696dfcc0593a2 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Wed, 30 Nov 2011 17:40:10 -0800 Subject: [PATCH] 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 --- .../tst/org/eclipse/jgit/http/test/HttpClientTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 { -- 2.39.5