Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kbabushkin committed Apr 10, 2024
1 parent f881376 commit 490979c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions golibs/files/mmfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ func TestGrowMMFile(t *testing.T) {

buf := []byte{1, 2, 3, 4, 5}
res, err := mmf.Buffer(4093, len(buf))
fi, err := os.Stat(fn)
assert.Nil(t, err)
n := copy(res, buf)
assert.Nil(t, err)
Expand All @@ -104,11 +103,6 @@ func TestGrowMMFile(t *testing.T) {
assert.Nil(t, err)
assert.Equal(t, int64(20*4096), mmf.Size())

// after the growth the mod time should be changed
fi1, err := os.Stat(fn)
assert.Nil(t, err)
assert.True(t, fi1.ModTime().UTC().After(fi.ModTime().UTC()))

res, err = mmf.Buffer(4093, len(buf))
assert.Nil(t, err)
assert.Equal(t, buf, res)
Expand Down

0 comments on commit 490979c

Please sign in to comment.