diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-11-02 23:39:16 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-11-02 23:39:16 -0700 |
| commit | 0c8dea9de8dffa2e2cc252cdab7112a3664b3a09 (patch) | |
| tree | 3c0cfd3cbe04c9a74059be5dc9725d00725afa0c /weed/filer/filechunks_read_test.go | |
| parent | 5160eb08f7665409221ebb0b9db6f4820e29bed3 (diff) | |
| download | seaweedfs-0c8dea9de8dffa2e2cc252cdab7112a3664b3a09.tar.xz seaweedfs-0c8dea9de8dffa2e2cc252cdab7112a3664b3a09.zip | |
go fmt
Diffstat (limited to 'weed/filer/filechunks_read_test.go')
| -rw-r--r-- | weed/filer/filechunks_read_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/filer/filechunks_read_test.go b/weed/filer/filechunks_read_test.go index ff0cd9f4b..e70c66e6f 100644 --- a/weed/filer/filechunks_read_test.go +++ b/weed/filer/filechunks_read_test.go @@ -52,7 +52,7 @@ func TestReadResolvedChunks(t *testing.T) { func TestRandomizedReadResolvedChunks(t *testing.T) { - var limit int64 = 1024*1024 + var limit int64 = 1024 * 1024 array := make([]int64, limit) var chunks []*filer_pb.FileChunk for ts := int64(0); ts < 1024; ts++ { @@ -75,7 +75,7 @@ func TestRandomizedReadResolvedChunks(t *testing.T) { visibles := readResolvedChunks(chunks) for _, visible := range visibles { - for i := visible.start; i<visible.stop;i++{ + for i := visible.start; i < visible.stop; i++ { if array[i] != visible.modifiedTime { t.Errorf("position %d expected ts %d actual ts %d", i, array[i], visible.modifiedTime) } @@ -101,12 +101,12 @@ func randomWrite(array []int64, start int64, size int64, ts int64) *filer_pb.Fil func TestSequentialReadResolvedChunks(t *testing.T) { - var chunkSize int64 = 1024*1024*2 + var chunkSize int64 = 1024 * 1024 * 2 var chunks []*filer_pb.FileChunk for ts := int64(0); ts < 13; ts++ { chunks = append(chunks, &filer_pb.FileChunk{ FileId: "", - Offset: chunkSize*ts, + Offset: chunkSize * ts, Size: uint64(chunkSize), Mtime: 1, }) |
