Skip to content

Commit

Permalink
rebase changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmeenkaur committed Sep 21, 2023
1 parent b1de3bd commit 432b72a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions tools/integration_tests/local_file/stat_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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)
}

Expand All @@ -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)
}
2 changes: 1 addition & 1 deletion tools/integration_tests/local_file/sym_link_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 432b72a

Please sign in to comment.