dont check flush

This commit is contained in:
Bryan Stitt 2023-08-02 15:25:04 -07:00
parent d25884dfbb
commit e70eeb11e0

@ -185,9 +185,9 @@ async fn test_user_balance_decreases() {
}
// Flush all stats here
let flush_count = x.flush_stats().await.unwrap();
assert_eq!(flush_count.timeseries, 0);
assert!(flush_count.relational > 0);
let _ = x.flush_stats().await.unwrap();
// assert_eq!(flush_count.timeseries, 0);
// assert!(flush_count.relational > 0);
// Check the balance, it should not have decreased; there should have been accounted free credits, however
let user_balance = user_get_balance(&x, &r, &user_login_response).await;
@ -223,9 +223,9 @@ async fn test_user_balance_decreases() {
}
// Flush all stats here
let flush_count = x.flush_stats().await.unwrap();
assert_eq!(flush_count.timeseries, 0);
assert!(flush_count.relational == 1);
let _ = x.flush_stats().await.unwrap();
// assert_eq!(flush_count.timeseries, 0);
// assert!(flush_count.relational == 1);
// Deposits should not be affected, and should be equal to what was initially provided
let user_balance = user_get_balance(&x, &r, &user_login_response).await;
@ -358,9 +358,10 @@ async fn test_referral_bonus_non_concurrent() {
}
// Flush all stats here
let flush_count = x.flush_stats().await.unwrap();
assert_eq!(flush_count.timeseries, 0);
assert!(flush_count.relational > 0);
let _ = x.flush_stats().await.unwrap();
// we can't assert because the intervals might flush for us
// assert_eq!(flush_count.timeseries, 0);
// assert!(flush_count.relational > 0);
// Check that at least something was earned:
let shared_referral_code: UserSharedReferralInfo =
@ -521,9 +522,9 @@ async fn test_referral_bonus_concurrent_referrer_only() {
}
// Flush all stats here
let flush_count = x.flush_stats().await.unwrap();
assert_eq!(flush_count.timeseries, 0);
assert!(flush_count.relational > 0);
let _ = x.flush_stats().await.unwrap();
// assert_eq!(flush_count.timeseries, 0);
// assert!(flush_count.relational > 0);
// Check that at least something was earned:
let shared_referral_code: UserSharedReferralInfo =
@ -705,9 +706,9 @@ async fn test_referral_bonus_concurrent_referrer_and_user() {
}
// Flush all stats here
let flush_count = x.flush_stats().await.unwrap();
assert_eq!(flush_count.timeseries, 0);
assert!(flush_count.relational > 0);
let _ = x.flush_stats().await.unwrap();
// assert_eq!(flush_count.timeseries, 0);
// assert!(flush_count.relational > 0);
// Check that at least something was earned:
let shared_referral_code: UserSharedReferralInfo =