From 3020a9b4cdf359bd4ecb61fc17fb47f5d2587311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Doma=C5=84ski?= Date: Sun, 22 May 2022 17:46:03 +0200 Subject: [PATCH] Revert "test AddLocalFile" This reverts commit 09683d001a5df00612516394879d91bf70b2d48c. --- image_writer_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/image_writer_test.go b/image_writer_test.go index 22dad3d..b681ae8 100644 --- a/image_writer_test.go +++ b/image_writer_test.go @@ -1,6 +1,7 @@ package iso9660 import ( + "bytes" "io/ioutil" "os" "path" @@ -98,7 +99,7 @@ func TestWriter(t *testing.T) { largeFileData, err := ioutil.ReadFile("fixtures/test.iso_source/dir2/large.txt") assert.NoError(t, err) - err = w.AddLocalFile("fixtures/test.iso_source/dir2/large.txt", "anotherDir/large.txt") + err = w.AddFile(bytes.NewReader(largeFileData), "anotherDir/large.txt") assert.NoError(t, err) f, err := ioutil.TempFile(os.TempDir(), "iso9660_golang_test")