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

OZG-7143 delete flag check

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