Skip to content

Commit

Permalink
rebased and updated changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyshu committed Jan 8, 2025
1 parent 6a865dd commit 203fa9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Ability to run all unit tests on Windows.
- Deprecated delete.WithDeleteAllVersions in favor of delete.WithAllVersions.
### Security
- Switched to new Azure SDK (from deprecated github.com/Azure/azure-storage-blob-go)

## [6.24.0] - 2024-12-16
### Security
Expand Down
4 changes: 2 additions & 2 deletions backend/azure/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (s *FileTestSuite) TestExists_NonExistentFile() {
}

func (s *FileTestSuite) TestCloseWithContentType() {
client := MockAzureClient{PropertiesError: MockStorageError{}}
client := MockAzureClient{PropertiesError: blobNotFoundErr}
fs := NewFileSystem().WithClient(&client)
f, _ := fs.NewFile("test-container", "/foo.txt", newfile.WithContentType("text/plain"))
_, _ = f.Write([]byte("Hello, World!"))
Expand Down Expand Up @@ -300,7 +300,7 @@ func (s *FileTestSuite) TestTouch_NonexistentContainer() {
}

func (s *FileTestSuite) TestTouchWithContentType() {
client := MockAzureClient{ExpectedResult: &BlobProperties{}, PropertiesError: MockStorageError{}}
client := MockAzureClient{ExpectedResult: &BlobProperties{}, PropertiesError: blobNotFoundErr}
fs := NewFileSystem().WithClient(&client)

f, err := fs.NewFile("test-container", "/foo.txt", newfile.WithContentType("text/plain"))
Expand Down

0 comments on commit 203fa9b

Please sign in to comment.