Skip to content

Commit eb5ccb7

Browse files
committed
Refactored file upload: generalized HttpGatewayAcceptor file-download
1 parent fa478d6 commit eb5ccb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services-gateway/src/test/java/io/scalecube/services/gateway/files/FileDownloadTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void afterEach() {
124124
class FileServiceTests {
125125

126126
@ParameterizedTest(name = "Download file of size {0} bytes")
127-
@ValueSource(longs = {512, 1024, 1024 * 1024, 10 * 1024 * 1024})
127+
@ValueSource(longs = {0, 512, 1024, 1024 * 1024, 10 * 1024 * 1024})
128128
void testDownloadSuccessfully(long fileSize) throws Exception {
129129
final var reportResponse =
130130
serviceCall
@@ -307,7 +307,7 @@ void failOnDownload(String path) {
307307
}
308308

309309
@ParameterizedTest(name = "Download file of size {0} bytes")
310-
@ValueSource(longs = {0, 64, 512, 1024, 1024 * 1024, 10 * 1024 * 1024})
310+
@ValueSource(longs = {0, 512, 1024, 1024 * 1024, 10 * 1024 * 1024})
311311
void successfulDownload(long fileSize) throws Exception {
312312
final var file =
313313
downloadFile(

0 commit comments

Comments
 (0)