diff options
author | Masaya Suzuki <masayasuzuki@google.com> | 2019-11-07 17:15:57 -0800 |
---|---|---|
committer | Masaya Suzuki <masayasuzuki@google.com> | 2019-12-02 12:25:03 -0800 |
commit | 6bc366576438be839fb6bd95b5fb5dfcb9306846 (patch) | |
tree | def2a01ad7427223df753777e6e6b6bd1ddbb933 /org.eclipse.jgit.test | |
parent | 853098e13eb82ff3c055da128d86ee2871c77a1a (diff) | |
download | jgit-6bc366576438be839fb6bd95b5fb5dfcb9306846.tar.gz jgit-6bc366576438be839fb6bd95b5fb5dfcb9306846.zip |
transport: Move handling code to the caller side
This removes a raw IOException at one level. Later we'll add a custom
exception handling mechanism like UploadPack.
Change-Id: I52a7423798c97b032d848351be8b6f144776b017
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java index 89ac2fe96d..daf7b9fb7a 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java @@ -495,8 +495,7 @@ public class ReceivePackAdvertiseRefsHookTest extends LocalDiskRepositoryTestCas receive(rp, inBuf, outBuf); fail("Expected UnpackException"); } catch (UnpackException failed) { - Throwable err = failed.getCause(); - assertTrue(err instanceof IOException); + // Expected } final PacketLineIn r = asPacketLineIn(outBuf); |