Browse Source

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
tags/v1.2.0.201112221803-r
Shawn O. Pearce 12 years ago
parent
commit
cea935ab1b

+ 1
- 2
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java View File

@@ -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 {

Loading…
Cancel
Save