Seems like I emit a way too broad range from disks?

This commit is contained in:
Dominik Werder
2021-04-26 18:15:54 +02:00
parent bf376af81e
commit 57a1c33bbc
11 changed files with 358 additions and 262 deletions

View File

@@ -11,7 +11,7 @@ use std::sync::Arc;
use tracing::{debug, error, info, trace, warn};
fn test_cluster() -> Cluster {
let nodes = (0..1)
let nodes = (0..13)
.into_iter()
.map(|id| {
let node = Node {
@@ -22,7 +22,7 @@ fn test_cluster() -> Cluster {
port_raw: 8360 + id as u16 + 100,
data_base_path: format!("../tmpdata/node{:02}", id).into(),
ksprefix: "ks".into(),
split: 0,
split: id,
};
Arc::new(node)
})
@@ -131,6 +131,16 @@ async fn get_cached_0_inner() -> Result<(), Error> {
Ok(())
}
#[test]
fn test_gen_test_data() {
let res = taskrun::run(async {
disk::gen::gen_test_data().await?;
Ok(())
});
info!("{:?}", res);
res.unwrap();
}
#[test]
fn bufs() {
use bytes::{Buf, BufMut};