Add missing error check in persistence test

This commit is contained in:
Tobias Schmidt 2016-09-14 23:16:47 -04:00
parent 27074863b4
commit e2c12dcdb5
1 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,9 @@ func testPersistLoadDropChunks(t *testing.T, encoding chunkEncoding) {
} }
// Load chunk descs partially. // Load chunk descs partially.
actualChunkDescs, err = p.loadChunkDescs(fp, 5) actualChunkDescs, err = p.loadChunkDescs(fp, 5)
if err != nil {
t.Fatal(err)
}
if len(actualChunkDescs) != 5 { if len(actualChunkDescs) != 5 {
t.Errorf("Got %d chunkDescs, want %d.", len(actualChunkDescs), 5) t.Errorf("Got %d chunkDescs, want %d.", len(actualChunkDescs), 5)
} }