Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed Jun 18, 2024
1 parent eb3f8c9 commit 6fb3142
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions node/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,10 @@ func TestEncodeDecodeChunks(t *testing.T) {
_, _ = cryptorand.Read(chunk)
chunks[i] = chunk
}
encoded, _ := node.EncodeChunks(chunks)
decoded, _ := node.DecodeChunks(encoded)
encoded, err := node.EncodeChunks(chunks)
assert.Nil(t, err)
decoded, err := node.DecodeChunks(encoded)
assert.Nil(t, err)
for i := 0; i < numChunks; i++ {
assert.True(t, bytes.Equal(decoded[i], chunks[i]))
}
Expand Down

0 comments on commit 6fb3142

Please sign in to comment.