remove assert that doesnt work well with interval flushes

This commit is contained in:
Bryan Stitt 2023-07-22 02:41:27 -07:00
parent 22400e9c8b
commit ba1ce91322

View File

@ -97,15 +97,16 @@ async fn test_single_proxy_stats_add_up() {
// give stats time to get into the channel
// TODO: do this better
sleep(Duration::from_secs(10)).await;
sleep(Duration::from_secs(5)).await;
// Flush all stats here
// TODO: the test should maybe pause time so that stats definitely flush from our queries.
let flush_0_count_0 = x.flush_stats().await.unwrap();
warn!("Counts 0 are: {:?}", flush_0_count_0);
assert_eq!(flush_0_count_0.relational, 1);
assert_eq!(flush_0_count_0.timeseries, 2);
// we don't actually assert on these because its likely the intervals flushed most of the stats
// assert_eq!(flush_0_count_0.relational, 1);
// assert_eq!(flush_0_count_0.timeseries, 2);
// Wait a bit. TODO: instead of waiting. make flush stats more robust
sleep(Duration::from_secs(5)).await;