Address review nits

This commit is contained in:
Łukasz Magiera 2019-12-02 15:26:39 +01:00
parent 1cdf6a6f8d
commit 6f578d4006
2 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,7 @@ endif
MODULES:= MODULES:=
CLEAN:= CLEAN:=
BINS:=
## FFI ## FFI

View File

@ -4,7 +4,6 @@ import (
"bytes" "bytes"
"context" "context"
"fmt" "fmt"
"io"
"io/ioutil" "io/ioutil"
"math/rand" "math/rand"
"os" "os"
@ -43,7 +42,9 @@ func TestDealFlow(t *testing.T, b APIBuilder) {
} }
time.Sleep(time.Second) time.Sleep(time.Second)
data, _ := ioutil.ReadAll(io.LimitReader(rand.New(rand.NewSource(5)), 1000)) data := make([]byte, 1000)
rand.New(rand.NewSource(5)).Read(data)
r := bytes.NewReader(data) r := bytes.NewReader(data)
fcid, err := client.ClientImportLocal(ctx, r) fcid, err := client.ClientImportLocal(ctx, r)
if err != nil { if err != nil {