aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage/dpa_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/storage/dpa_test.go')
-rw-r--r--swarm/storage/dpa_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/swarm/storage/dpa_test.go b/swarm/storage/dpa_test.go
index a68232407..a23b9efeb 100644
--- a/swarm/storage/dpa_test.go
+++ b/swarm/storage/dpa_test.go
@@ -120,8 +120,7 @@ func TestDPA_capacity(t *testing.T) {
// check whether it is, indeed, empty
dpa.ChunkStore = memStore
resultReader = dpa.Retrieve(key)
- n, err = resultReader.ReadAt(resultSlice, 0)
- if err == nil {
+ if _, err = resultReader.ReadAt(resultSlice, 0); err == nil {
t.Errorf("Was able to read %d bytes from an empty memStore.", len(slice))
}
// check how it works with localStore