From d9403690ecaf1beecc4369c56c4600caf275dae8 Mon Sep 17 00:00:00 2001 From: gluk256 Date: Fri, 19 Apr 2019 11:15:17 +0200 Subject: swarm/pss: Fix flaky TestProxNetwork (#19471) --- swarm/network/simulation/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swarm/network') diff --git a/swarm/network/simulation/node.go b/swarm/network/simulation/node.go index 46c2bb866..f66b0afd0 100644 --- a/swarm/network/simulation/node.go +++ b/swarm/network/simulation/node.go @@ -234,9 +234,9 @@ func (s *Simulation) UploadSnapshot(ctx context.Context, snapshotFile string, op if err != nil { return err } - defer f.Close() jsonbyte, err := ioutil.ReadAll(f) + f.Close() if err != nil { return err } -- cgit v1.2.3