diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-01-24 22:39:41 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-01-24 22:39:41 -0800 |
| commit | d3f675abc6829876b1804150e00db43c5d310e14 (patch) | |
| tree | c73ef5c46404742f552ee3022ad4a879d8a0a2fc | |
| parent | e70f740deb210672a0d409628b839c56eb867d91 (diff) | |
| parent | 01060c992591f412b0d5e180bde29991747a9462 (diff) | |
| download | seaweedfs-d3f675abc6829876b1804150e00db43c5d310e14.tar.xz seaweedfs-d3f675abc6829876b1804150e00db43c5d310e14.zip | |
Merge branch 'master' of https://github.com/chrislusf/seaweedfs
| -rw-r--r-- | weed/storage/needle_read_write_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/weed/storage/needle_read_write_test.go b/weed/storage/needle_read_write_test.go index 8bd9205c1..2532e6a38 100644 --- a/weed/storage/needle_read_write_test.go +++ b/weed/storage/needle_read_write_test.go @@ -1,9 +1,7 @@ package storage import ( - "crypto/rand" "github.com/chrislusf/seaweedfs/weed/storage/types" - "io" "io/ioutil" "os" "testing" @@ -49,7 +47,7 @@ func TestAppend(t *testing.T) { */ fileSize := int64(4294967295) + 10000 - io.CopyN(tempFile, rand.Reader, fileSize) + tempFile.Truncate(fileSize) defer func() { tempFile.Close() os.Remove(tempFile.Name()) |
