Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
kislaykishore committed Jun 18, 2024
1 parent 4a270e8 commit bfbaa16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/cache/file/cache_handle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"errors"
"fmt"
"io"
"math"
"os"
"path"
"path/filepath"
Expand All @@ -39,6 +40,7 @@ import (
"github.com/googlecloudplatform/gcsfuse/v2/tools/integration_tests/util/operations"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
"golang.org/x/sync/semaphore"
)

const CacheMaxSize = 100 * util.MiB
Expand Down Expand Up @@ -136,7 +138,7 @@ func (cht *cacheHandleTest) SetupTest() {
readLocalFileHandle, err := util.CreateFile(cht.fileSpec, os.O_RDONLY)
assert.Nil(cht.T(), err)

fileDownloadJob := downloader.NewJob(cht.object, cht.bucket, cht.cache, DefaultSequentialReadSizeMb, cht.fileSpec, func() {}, &config.FileCacheConfig{EnableCrcCheck: true})
fileDownloadJob := downloader.NewJob(cht.object, cht.bucket, cht.cache, DefaultSequentialReadSizeMb, cht.fileSpec, func() {}, &config.FileCacheConfig{EnableCrcCheck: true}, semaphore.NewWeighted(math.MaxInt64))

cht.cacheHandle = NewCacheHandle(readLocalFileHandle, fileDownloadJob, cht.cache, false, 0)
}
Expand Down

0 comments on commit bfbaa16

Please sign in to comment.