Skip to content

Commit

Permalink
put ReadFile() call back in place for TestReadFile()
Browse files Browse the repository at this point in the history
  • Loading branch information
Dabnsky committed Jun 12, 2024
1 parent 1bef051 commit e927ccd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions component/file_cache/file_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,10 +896,11 @@ func (suite *fileCacheTestSuite) TestReadFile() {
suite.fileCache.FlushFile(internal.FlushFileOptions{Handle: handle})

handle, _ = suite.fileCache.OpenFile(internal.OpenFileOptions{Name: file, Mode: 0777})

d, err := suite.fileCache.ReadInBuffer(internal.ReadInBufferOptions{Handle: handle, Offset: 0, Data: data})
n, err := suite.fileCache.ReadInBuffer(internal.ReadInBufferOptions{Handle: handle, Offset: 0, Data: data})
d, err := suite.fileCache.ReadFile(internal.ReadFileOptions{Handle: handle})
suite.assert.NoError(err)
suite.assert.EqualValues(9, d)
suite.assert.EqualValues(9, n)
suite.assert.EqualValues(data, d)
}

func (suite *fileCacheTestSuite) TestReadFileNoFlush() {
Expand Down

0 comments on commit e927ccd

Please sign in to comment.