Skip to content

Commit

Permalink
added variable for destination
Browse files Browse the repository at this point in the history
Signed-off-by: satyazzz123 <[email protected]>
  • Loading branch information
satyazzz123 committed Dec 14, 2023
1 parent b7e6f22 commit 33d1c13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion filesystem/merger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ func TestMergeDeletionCallBack(t *testing.T) {
func TestMergeProcessFileCallBack_SameContent(t *testing.T) {
t.Run("test for source and destination files with same content", func(t *testing.T) {
nonExistentPath := ""

sourceFile, err := ioutil.TempFile(nonExistentPath, "source")
if err != nil {
t.Fatalf("Failed to create source file: %v", err)
}
defer os.Remove(sourceFile.Name())

destinationFile, err := ioutil.TempFile("", "destination")
destinationFile, err := ioutil.TempFile(nonExistentPath , "destination")
if err != nil {
t.Fatalf("Failed to create destination file: %v", err)
}
Expand Down

0 comments on commit 33d1c13

Please sign in to comment.