Исправление тестов.

FCMClient теперь не инициализируется, если отсутствует требуемая переменная окружения.
This commit is contained in:
2025-04-16 16:38:37 +04:00
parent e71ab0526d
commit 28f59389ed
3 changed files with 12 additions and 2 deletions

View File

@@ -78,6 +78,8 @@ pub async fn set_token(
// Subscribe to default topics.
if let Some(e) = app_state
.fcm_client
.as_ref()
.unwrap()
.async_scope(
async |client: &mut FCMClient| -> Result<(), TopicManagementError> {
let mut tokens: Vec<String> = Vec::new();