From e70eeb11e0a0ee4fa93d500d8e804bbda0f58201 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 2 Aug 2023 15:25:04 -0700 Subject: [PATCH] dont check flush --- web3_proxy/tests/test_users.rs | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/web3_proxy/tests/test_users.rs b/web3_proxy/tests/test_users.rs index e39e6471..691d97f1 100644 --- a/web3_proxy/tests/test_users.rs +++ b/web3_proxy/tests/test_users.rs @@ -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 =