diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2016-11-14 16:31:24 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-11-14 16:46:36 -0800 |
commit | 4140e0362ad32a8b089d0325f9f33ed2dac4d242 (patch) | |
tree | 9ecf5263a93f74593c6aa3f813b13534fdfa1c5b | |
parent | 0cb6d0438728d552ad98b718e2e0d8fd433b689f (diff) |
Adding a test for bug that was fixed in a previous CL.
Change: 139137524
-rw-r--r-- | tensorflow/core/platform/cloud/gcs_file_system_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/core/platform/cloud/gcs_file_system_test.cc b/tensorflow/core/platform/cloud/gcs_file_system_test.cc index c83e079356..964f6c932b 100644 --- a/tensorflow/core/platform/cloud/gcs_file_system_test.cc +++ b/tensorflow/core/platform/cloud/gcs_file_system_test.cc @@ -145,8 +145,10 @@ TEST(GcsFileSystemTest, NewRandomAccessFile_WithReadAhead) { StringPiece result; // Read the first chunk. The buffer will be updated with 4 + 5 = 9 bytes. + scratch[5] = 'x'; TF_EXPECT_OK(file->Read(0, 4, &result, scratch)); EXPECT_EQ("0123", result); + EXPECT_EQ(scratch[5], 'x'); // Make sure we only copied 4 bytes. // The second chunk will be fully loaded from the buffer, no requests are // made. |