File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
services-gateway/src/test/java/io/scalecube/services/gateway/files Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -138,10 +138,9 @@ void testDownloadSuccessfully(long fileSize) throws Exception {
138
138
final var file =
139
139
downloadFile (
140
140
"http://localhost:" + httpAddress .port () + "/" + reportResponse .reportPath ());
141
- final var list = Files .readAllLines (file );
142
-
141
+ assertTrue (Files .exists (file ), "File does not exist" );
143
142
assertTrue (file .toFile ().length () >= fileSize , "fileSize: " + file .toFile ().length ());
144
- for (String s : list ) {
143
+ for (String s : Files . readAllLines ( file ) ) {
145
144
assertTrue (s .startsWith ("export report @" ), "line: " + s );
146
145
}
147
146
}
@@ -312,10 +311,9 @@ void successfulDownload(long fileSize) throws Exception {
312
311
final var file =
313
312
downloadFile (
314
313
"http://localhost:" + httpAddress .port () + "/v1/api/successfulDownload/" + fileSize );
315
- final var list = Files .readAllLines (file );
316
-
314
+ assertTrue (Files .exists (file ), "File does not exist" );
317
315
assertTrue (file .toFile ().length () >= fileSize , "fileSize: " + file .toFile ().length ());
318
- for (String s : list ) {
316
+ for (String s : Files . readAllLines ( file ) ) {
319
317
assertTrue (s .startsWith ("export report @" ), "line: " + s );
320
318
}
321
319
}
You can’t perform that action at this time.
0 commit comments