Enhance TestValidatingBatchingSinkPrepare (#2705)

The test now actually validates that processing the provided
hints populates the VBS' chunk cache
This commit is contained in:
cmasone-attic
2016-10-13 13:34:59 -07:00
committed by GitHub
parent 5619d2b3ac
commit 3afdbd99c4

View File

@@ -28,7 +28,9 @@ func TestValidatingBatchingSinkPrepare(t *testing.T) {
vbs := NewValidatingBatchingSink(cs)
vbs.Prepare(hints)
assert.Equal(t, 5, cs.Reads)
for h := range hints {
vbs.vs.isPresent(h)
}
}
func TestValidatingBatchingSinkDecode(t *testing.T) {