mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
chore(deps): update fred and moka (#3088)
This commit is contained in:
@ -535,6 +535,7 @@ mod tests {
|
||||
merchant_id,
|
||||
hashed_api_key.into_inner()
|
||||
),)
|
||||
.await
|
||||
.is_none()
|
||||
)
|
||||
}
|
||||
|
||||
@ -63,7 +63,7 @@ where
|
||||
F: FnOnce() -> Fut + Send,
|
||||
Fut: futures::Future<Output = CustomResult<T, errors::StorageError>> + Send,
|
||||
{
|
||||
let cache_val = cache.get_val::<T>(key);
|
||||
let cache_val = cache.get_val::<T>(key).await;
|
||||
if let Some(val) = cache_val {
|
||||
Ok(val)
|
||||
} else {
|
||||
|
||||
@ -890,6 +890,7 @@ mod merchant_connector_account_cache_tests {
|
||||
"{}_{}",
|
||||
merchant_id, connector_label
|
||||
),)
|
||||
.await
|
||||
.is_none())
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,8 +50,8 @@ async fn invalidate_existing_cache_success() {
|
||||
let response_body = response.body().await;
|
||||
println!("invalidate Cache: {response:?} : {response_body:?}");
|
||||
assert_eq!(response.status(), awc::http::StatusCode::OK);
|
||||
assert!(cache::CONFIG_CACHE.get(&cache_key).is_none());
|
||||
assert!(cache::ACCOUNTS_CACHE.get(&cache_key).is_none());
|
||||
assert!(cache::CONFIG_CACHE.get(&cache_key).await.is_none());
|
||||
assert!(cache::ACCOUNTS_CACHE.get(&cache_key).await.is_none());
|
||||
}
|
||||
|
||||
#[actix_web::test]
|
||||
|
||||
Reference in New Issue
Block a user