|
@ -33,7 +33,8 @@ func TestFileSystemStorageProvider(t *testing.T) { |
|
|
t.Run("storeExisting method stores files in filesystem", func(t *testing.T) { |
|
|
t.Run("storeExisting method stores files in filesystem", func(t *testing.T) { |
|
|
fileSystem := afero.NewMemMapFs() |
|
|
fileSystem := afero.NewMemMapFs() |
|
|
|
|
|
|
|
|
afero.WriteFile(fileSystem, "/tmp/existing.bin", dummyData, os.ModePerm) |
|
|
|
|
|
|
|
|
err := os.WriteFile("/tmp/existing.bin", dummyData, os.ModePerm) |
|
|
|
|
|
assert.Nil(t, err) |
|
|
|
|
|
|
|
|
provider := FileSystemStorageProvider{ |
|
|
provider := FileSystemStorageProvider{ |
|
|
fileSystem: fileSystem, |
|
|
fileSystem: fileSystem, |
|
|