diff options
author | Jakob Odersky <jakob@odersky.com> | 2017-06-19 11:40:34 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2017-06-19 13:47:42 -0700 |
commit | f6a67a8400e12de6e0ae83d0b4c744e07fc4901c (patch) | |
tree | 7cfeab5d13327a3e319a893d54cd0bb30a00ad92 /src/test/scala | |
parent | 38b7278027e81c97afde27fb48eefde3c6e254bd (diff) | |
download | driver-core-f6a67a8400e12de6e0ae83d0b4c744e07fc4901c.tar.gz driver-core-f6a67a8400e12de6e0ae83d0b4c744e07fc4901c.tar.bz2 driver-core-f6a67a8400e12de6e0ae83d0b4c744e07fc4901c.zip |
Check for null values in gcs directory listingv0.13.12
GCS: when listing, always assume the path is a directory
GCS: fix unit test
Diffstat (limited to 'src/test/scala')
-rw-r--r-- | src/test/scala/xyz/driver/core/FileTest.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/scala/xyz/driver/core/FileTest.scala b/src/test/scala/xyz/driver/core/FileTest.scala index a1b0329..c35eb5b 100644 --- a/src/test/scala/xyz/driver/core/FileTest.scala +++ b/src/test/scala/xyz/driver/core/FileTest.scala @@ -150,8 +150,7 @@ class FileTest extends FlatSpec with Matchers with MockitoSugar { Iterator[Blob](blobMock).asJava, Iterator[Blob]().asJava ) - when( - gcsMock.list(testBucket.value, BlobListOption.currentDirectory(), BlobListOption.prefix(testDirPath.toString))) + when(gcsMock.list(testBucket.value, BlobListOption.currentDirectory(), BlobListOption.prefix(s"$testDirPath/"))) .thenReturn(pageMock) val filesBefore = Await.result(gcsStorage.list(testDirPath).run, 10 seconds) |