Skip to content
Snippets Groups Projects
Commit ea049edf authored by OZGCloud's avatar OZGCloud
Browse files

OZG-7143 delete flag check

parent 5134a3f3
No related branches found
No related tags found
No related merge requests found
......@@ -133,9 +133,6 @@ public class GrpcBinaryFileServerDownloader<T> {
}
void completeRequest() {
if (requestFinished.getAndSet(true)) {
return;
}
LOG.debug("Complete download request");
closeInputStream();
callObserver.onCompleted();
......
......@@ -416,13 +416,6 @@ class GrpcBinaryFileServerDownloaderTest {
setInputStreamField(inputStream);
}
@Test
void shouldSetSendingFinished() {
downloader.completeRequest();
assertThat(getRequestFinished()).isTrue();
}
@SneakyThrows
@Test
void shouldCallCloseInputStream() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment