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
stable-1.2
Shawn O. Pearce 13 years ago
parent
commit
cea935ab1b
  1. 3
      org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java

3
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java

@ -368,8 +368,7 @@ public class HttpClientTests extends HttpTestCase {
t.openFetch(); t.openFetch();
fail("connection opened even though service disabled"); fail("connection opened even though service disabled");
} catch (TransportException err) { } catch (TransportException err) {
String exp = smartAuthNoneURI String exp = smartAuthNoneURI + ": Git access forbidden";
+ ": git-upload-pack not permitted";
assertEquals(exp, err.getMessage()); assertEquals(exp, err.getMessage());
} }
} finally { } finally {

Loading…
Cancel
Save