Skip to content

Commit faa5c37

Browse files
Discard http output (#156)
Co-authored-by: raulk <[email protected]>
1 parent 0f89d34 commit faa5c37

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

testplans/graphsync/main.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,15 +359,11 @@ func runRequestor(ctx context.Context, runenv *runtime.RunEnv, initCtx *run.Init
359359
if runHTTPTest {
360360
// request file directly over http
361361
start = time.Now()
362-
file, err := ioutil.TempFile(os.TempDir(), fmt.Sprintf("%s-", c.String()))
363-
if err != nil {
364-
panic(err)
365-
}
366362
resp, err := http.Get(fmt.Sprintf("http://%s:8080/%s", p.ip.String(), c.String()))
367363
if err != nil {
368364
panic(err)
369365
}
370-
bytesRead, err := io.Copy(file, resp.Body)
366+
bytesRead, err := io.Copy(ioutil.Discard, resp.Body)
371367
if err != nil {
372368
panic(err)
373369
}

testplans/graphsync/stress.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ chunk_size = "20"
1717
links_per_level = "1024"
1818
raw_leaves = "true"
1919
disk_store = "true"
20-
memory_snapshots = "true"
20+
memory_snapshots = "none"
2121

2222
[[groups]]
2323
id = "providers"

0 commit comments

Comments
 (0)