diff --git a/tools/integration_tests/local_file/stat_file_test.go b/tools/integration_tests/local_file/stat_file_test.go index df425706f5..3f34b7ec6c 100644 --- a/tools/integration_tests/local_file/stat_file_test.go +++ b/tools/integration_tests/local_file/stat_file_test.go @@ -39,8 +39,8 @@ func TestStatOnLocalFile(t *testing.T) { // Stat the local file again to check if new content is written. operations.VerifyStatFile(filePath, SizeOfFileContents, FilePerms, t) - // Close the file and validate if the file is created on GCS. - CloseFileAndValidateObjectContentsFromGCS(ctx, storageClient, fh, testDirName, + // Close the file and validate that the file is created on GCS. + CloseFileAndValidateContentFromGCS(ctx, storageClient, fh, testDirName, FileName1, FileContents, t) } @@ -52,8 +52,8 @@ func TestStatOnLocalFileWithConflictingFileNameSuffix(t *testing.T) { // Stat the local file. operations.VerifyStatFile(filePath+inode.ConflictingFileNameSuffix, 0, FilePerms, t) - // Close the file and validate if the file is created on GCS. - CloseFileAndValidateObjectContentsFromGCS(ctx, storageClient, fh, testDirName, + // Close the file and validate that the file is created on GCS. + CloseFileAndValidateContentFromGCS(ctx, storageClient, fh, testDirName, FileName1, "", t) } @@ -77,7 +77,7 @@ func TestTruncateLocalFile(t *testing.T) { // Stat the file to validate if file is truncated correctly. operations.VerifyStatFile(filePath, SizeTruncate, FilePerms, t) - // Close the file and validate if the file is created on GCS. - CloseFileAndValidateObjectContentsFromGCS(ctx, storageClient, fh, testDirName, - FileName1, "tests", t) + // Close the file and validate that the file is created on GCS. + CloseFileAndValidateContentFromGCS(ctx, storageClient, fh, testDirName, + FileName1, "testS", t) } diff --git a/tools/integration_tests/local_file/sym_link_test.go b/tools/integration_tests/local_file/sym_link_test.go index 3850ca2605..a9ae130334 100644 --- a/tools/integration_tests/local_file/sym_link_test.go +++ b/tools/integration_tests/local_file/sym_link_test.go @@ -44,7 +44,7 @@ func createAndVerifySymLink(t *testing.T) (filePath, symlink string, fh *os.File func TestCreateSymlinkForLocalFile(t *testing.T) { _, _, fh := createAndVerifySymLink(t) - CloseFileAndValidateObjectContentsFromGCS(ctx, storageClient, fh, testDirName, + CloseFileAndValidateContentFromGCS(ctx, storageClient, fh, testDirName, FileName1, FileContents, t) }