Skip to content

Commit

Permalink
fix windows tests #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jxsl13 committed Aug 9, 2024
1 parent 62df300 commit 9ee69ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backupfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ func TestBackupFS_JSON(t *testing.T) {
}

require.Equal(info.IsDir(), newInfo.IsDir())
require.Equal(info.Name(), filepath.ToSlash(newInfo.Name()))
require.Equal(info.Name(), filepath.FromSlash(newInfo.Name()))
require.Equal(info.Size(), newInfo.Size())
require.Equal(info.ModTime().UnixNano(), newInfo.ModTime().UnixNano())
require.Equal(info.Mode(), newInfo.Mode())
Expand Down

0 comments on commit 9ee69ee

Please sign in to comment.