From 6f578d4006f0c31c9dc24be7fb1b279b534d3c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 2 Dec 2019 15:26:39 +0100 Subject: [PATCH] Address review nits --- Makefile | 1 + api/test/deals.go | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fadb68129..d492060e5 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ endif MODULES:= CLEAN:= +BINS:= ## FFI diff --git a/api/test/deals.go b/api/test/deals.go index f4a815594..735c6063b 100644 --- a/api/test/deals.go +++ b/api/test/deals.go @@ -4,7 +4,6 @@ import ( "bytes" "context" "fmt" - "io" "io/ioutil" "math/rand" "os" @@ -43,7 +42,9 @@ func TestDealFlow(t *testing.T, b APIBuilder) { } 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) fcid, err := client.ClientImportLocal(ctx, r) if err != nil {