Skip to content

Commit

Permalink
Skip test if file does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Dec 4, 2023
1 parent d107204 commit 3127aa3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.exasol.cloudetl.scriptclasses

import java.nio.file.Files
import java.nio.file.Paths

import scala.io.Source

import com.exasol.ExaIterator
Expand Down Expand Up @@ -142,6 +145,7 @@ class FilesDataImporterTest extends StorageTest with Matchers {
}

test("collectFiles with 40k real file names") {
assume(Files.exists(Paths.get("files.txt")))
val files = Source.fromFile("files.txt").getLines().map(fileName => iteratorRow(fileName, 0L, 1L)).toSeq
assert(files.size == 40000)
val result = FilesDataImporter.collectFiles(ExaIteratorMock.fromSeq(files))
Expand Down

0 comments on commit 3127aa3

Please sign in to comment.