Use unweighted binning as default

This commit is contained in:
Dominik Werder
2021-09-08 21:27:34 +02:00
parent 75abb4140a
commit c455c01d24
10 changed files with 53 additions and 22 deletions

View File

@@ -78,6 +78,29 @@ fn time_weighted_json_02() {
super::run_test(inner());
}
#[test]
fn time_weighted_json_03() {
async fn inner() -> Result<(), Error> {
let rh = require_test_hosts_running()?;
let cluster = &rh.cluster;
let res = get_json_common(
"const-regular-scalar-i32-be",
"1970-01-01T00:20:11.000Z",
"1970-01-01T00:30:20.000Z",
10,
AggKind::TimeWeightedScalar,
cluster,
11,
true,
)
.await?;
let v = res.avgs[0];
assert!(v > 41.9999 && v < 42.0001);
Ok(())
}
super::run_test(inner());
}
#[test]
fn time_weighted_json_10() {
async fn inner() -> Result<(), Error> {