fix tests

This commit is contained in:
marin postma 2021-10-24 14:41:36 +02:00
parent 0f86d6b28f
commit 2e62925a6e
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
8 changed files with 49 additions and 55 deletions

View file

@ -877,8 +877,8 @@ mod tests {
let mut cursor = Cursor::new(Vec::new());
let mut builder = DocumentBatchBuilder::new(&mut cursor).unwrap();
todo!();
//builder.add_documents(big_object).unwrap();
let big_object = Cursor::new(serde_json::to_vec(&big_object).unwrap());
builder.extend_from_json(big_object).unwrap();
builder.finish().unwrap();
cursor.set_position(0);
let content = DocumentBatchReader::from_reader(cursor).unwrap();