Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Dec 16, 2024
1 parent 1a2ec6b commit f2f9867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ollama/local_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ func TestRun_localWithCustomLogFileError(t *testing.T) {
require.NoError(t, err)
defer func() {
// Cleanup: restore permissions
os.Chmod(filepath.Dir(f.Name()), 0700)
require.NoError(t, os.Chmod(filepath.Dir(f.Name()), 0o700))
}()

// Make the file read-only and its parent directory read-only
// This should cause removal to fail on most systems
dir := filepath.Dir(f.Name())
require.NoError(t, os.Chmod(dir, 0500))
require.NoError(t, os.Chmod(dir, 0o500))

c := &OllamaContainer{
localCtx: &localContext{
Expand Down

0 comments on commit f2f9867

Please sign in to comment.