Skip to content

Commit

Permalink
Change path
Browse files Browse the repository at this point in the history
  • Loading branch information
apatruni committed Jan 18, 2025
1 parent ee52ed0 commit 28948eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fsext/trimpathseparator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ func TestTrimAferoPathSeparatorFs(t *testing.T) {
require.Error(t, err)
require.True(t, errors.Is(err, fs.ErrNotExist))

err = afero.WriteFile(f, filepath.FromSlash("/path/to//somewhereelse"), expecteData, 0o644)
err = afero.WriteFile(f, filepath.FromSlash("/path/to//otherpath"), expecteData, 0o644)
require.NoError(t, err)
data, err = afero.ReadFile(m, "path/to/somewhereelse")
data, err = afero.ReadFile(m, "path/to/otherpath")
require.NoError(t, err)
require.Equal(t, expecteData, data)
}

0 comments on commit 28948eb

Please sign in to comment.