From fb87f335434a1b731ffa3b5050c249a1a6673e3f Mon Sep 17 00:00:00 2001 From: aarshkshah1992 Date: Wed, 3 Mar 2021 16:08:31 +0530 Subject: [PATCH] discard http output --- testplans/graphsync/main.go | 6 +----- testplans/graphsync/stress.toml | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/testplans/graphsync/main.go b/testplans/graphsync/main.go index a8168602..be897b50 100644 --- a/testplans/graphsync/main.go +++ b/testplans/graphsync/main.go @@ -359,15 +359,11 @@ func runRequestor(ctx context.Context, runenv *runtime.RunEnv, initCtx *run.Init if runHTTPTest { // request file directly over http start = time.Now() - file, err := ioutil.TempFile(os.TempDir(), fmt.Sprintf("%s-", c.String())) - if err != nil { - panic(err) - } resp, err := http.Get(fmt.Sprintf("http://%s:8080/%s", p.ip.String(), c.String())) if err != nil { panic(err) } - bytesRead, err := io.Copy(file, resp.Body) + bytesRead, err := io.Copy(ioutil.Discard, resp.Body) if err != nil { panic(err) } diff --git a/testplans/graphsync/stress.toml b/testplans/graphsync/stress.toml index 8ec62f16..16969bf1 100644 --- a/testplans/graphsync/stress.toml +++ b/testplans/graphsync/stress.toml @@ -17,7 +17,7 @@ chunk_size = "20" links_per_level = "1024" raw_leaves = "true" disk_store = "true" -memory_snapshots = "true" +memory_snapshots = "none" [[groups]] id = "providers"