Skip to content

Commit

Permalink
get benchmarks working in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
puellanivis committed Nov 13, 2024
1 parent d2cb4df commit 88ff45f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions localfs/localfs_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -761,12 +761,12 @@ func benchHelperWriteTo(b *testing.B, length int) {
target := filepath.Join(dir, "bench-writeto")
remote := toRemotePath(target)

if err := os.WriteFile(remote, nil, 0644); err != nil {
if err := os.WriteFile(target, nil, 0644); err != nil {
b.Fatal(err)
}
defer os.Remove(remote)

if err := os.Truncate(remote, int64(length)); err != nil {
if err := os.Truncate(target, int64(length)); err != nil {
b.Fatal(err)
}

Expand Down Expand Up @@ -834,7 +834,7 @@ func benchHelperReadFrom(b *testing.B, length int) {
target := filepath.Join(dir, "bench-readfrom")
remote := toRemotePath(target)

if err := os.WriteFile(remote, nil, 0644); err != nil {
if err := os.WriteFile(target, nil, 0644); err != nil {
b.Fatal(err)
}
defer os.Remove(remote)
Expand Down

0 comments on commit 88ff45f

Please sign in to comment.