Skip to content

Commit

Permalink
#2195: fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lsulak committed Oct 18, 2023
1 parent 2aaabb4 commit ca2ca37
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ class FileSystemUtilsSpec extends AnyFunSuiteLike with SparkTestBase {
}

test("s3 protocol recognition and bucket set") {
val fs = FileSystemUtils.getFileSystemFromPath("s3://my_bucket/my/path")
assert(fs.getUri.toString == "s3a://my_bucket")
val fs = FileSystemUtils.getFileSystemFromPath("s3://my-bucket/my/path")
assert(fs.getUri.toString == "s3://my-bucket")
}

test("s3a protocol recognition and bucket set") {
val fs = FileSystemUtils.getFileSystemFromPath("s3a://my_bucket/my/path")
assert(fs.getUri.toString == "s3a://my_bucket")
val fs = FileSystemUtils.getFileSystemFromPath("s3a://my-bucket/my/path")
assert(fs.getUri.toString == "s3a://my-bucket")
}

}

0 comments on commit ca2ca37

Please sign in to comment.