Browse Source

Merge branch 'master' of https://github.com/chrislusf/seaweedfs

pull/853/head
Chris Lu 6 years ago
parent
commit
d3f675abc6
  1. 4
      weed/storage/needle_read_write_test.go

4
weed/storage/needle_read_write_test.go

@ -1,9 +1,7 @@
package storage package storage
import ( import (
"crypto/rand"
"github.com/chrislusf/seaweedfs/weed/storage/types" "github.com/chrislusf/seaweedfs/weed/storage/types"
"io"
"io/ioutil" "io/ioutil"
"os" "os"
"testing" "testing"
@ -49,7 +47,7 @@ func TestAppend(t *testing.T) {
*/ */
fileSize := int64(4294967295) + 10000 fileSize := int64(4294967295) + 10000
io.CopyN(tempFile, rand.Reader, fileSize)
tempFile.Truncate(fileSize)
defer func() { defer func() {
tempFile.Close() tempFile.Close()
os.Remove(tempFile.Name()) os.Remove(tempFile.Name())

Loading…
Cancel
Save