aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/network/simulation/node.go
diff options
context:
space:
mode:
authorgluk256 <gluk256@gmail.com>2019-04-19 17:15:17 +0800
committerAnton Evangelatov <anton.evangelatov@gmail.com>2019-04-19 17:15:17 +0800
commitd9403690ecaf1beecc4369c56c4600caf275dae8 (patch)
tree002c7b10c8fe260e3d8eb8bcc2bb9cd78036b6e6 /swarm/network/simulation/node.go
parentd8dc37c85bb68d83c05b819e03a7b5c05c815e42 (diff)
downloadgo-tangerine-d9403690ecaf1beecc4369c56c4600caf275dae8.tar
go-tangerine-d9403690ecaf1beecc4369c56c4600caf275dae8.tar.gz
go-tangerine-d9403690ecaf1beecc4369c56c4600caf275dae8.tar.bz2
go-tangerine-d9403690ecaf1beecc4369c56c4600caf275dae8.tar.lz
go-tangerine-d9403690ecaf1beecc4369c56c4600caf275dae8.tar.xz
go-tangerine-d9403690ecaf1beecc4369c56c4600caf275dae8.tar.zst
go-tangerine-d9403690ecaf1beecc4369c56c4600caf275dae8.zip
swarm/pss: Fix flaky TestProxNetwork (#19471)
Diffstat (limited to 'swarm/network/simulation/node.go')
-rw-r--r--swarm/network/simulation/node.go2
1 files changed, 1 insertions, 1 deletions
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
}