Procházet zdrojové kódy

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 před 12 roky
rodič
revize
cea935ab1b

+ 1
- 2
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java Zobrazit soubor

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

Načítá se…
Zrušit
Uložit