Skip to content

Commit e3d3bd4

Browse files
Khoyoalexandredamiron
authored andcommitted
editoast: test persist_batch on big chunks
1 parent a115139 commit e3d3bd4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

editoast/src/schema/buffer_stop.rs

+11
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,15 @@ mod test {
102102
assert!(BufferStop::persist_batch(&data, infra.id, conn).is_ok());
103103
});
104104
}
105+
106+
#[test]
107+
fn test_persist_large() {
108+
test_infra_transaction(|conn, infra| {
109+
let data = (0..(2_usize.pow(16) * 2))
110+
.map(|_| BufferStop::default())
111+
.collect::<Vec<BufferStop>>();
112+
113+
assert!(BufferStop::persist_batch(&data, infra.id, conn).is_ok());
114+
});
115+
}
105116
}

0 commit comments

Comments
 (0)