Skip to content
Snippets Groups Projects
Commit 2ffe2467 authored by Krzysztof Witukiewicz's avatar Krzysztof Witukiewicz
Browse files

OZG-7262 OZG-7657 Remove second call to sendChunks

parent 73ead92e
Branches
Tags
1 merge request!7OZG-7262 OZG-7657 Fix possible deadlock
......@@ -107,10 +107,9 @@ public class GrpcBinaryFileServerDownloader<T> {
void startDownload() {
try {
doDownload();
closeOutputStream();
sendChunks();
} catch (Exception e) {
downloadError.set(new TechnicalException("Error while downloading file contents", e));
} finally {
closeOutputStream();
}
}
......
......@@ -254,13 +254,6 @@ class GrpcBinaryFileServerDownloaderTest {
verify(outputStream).close();
}
@Test
void shouldSendChunks() {
downloader.startDownload();
verify(downloader).sendChunks();
}
}
@Nested
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment