diff --git a/lib/fsext/trimpathseparator_test.go b/lib/fsext/trimpathseparator_test.go index 38f6c6ed9c9..69faa161fa6 100644 --- a/lib/fsext/trimpathseparator_test.go +++ b/lib/fsext/trimpathseparator_test.go @@ -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) }