From 2c777e53f1ffdcf1ccfba6d38c0f7c37c84dd915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Vasconcellos?= Date: Wed, 24 Apr 2024 20:37:38 -0300 Subject: [PATCH] Fix core test (#2386) * Fix core test * Import CompressedCRDTOperations --------- Co-authored-by: Ericson "Fogo" Soares --- apps/server/src/main.rs | 2 +- core/crates/sync/tests/mock_instance.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/server/src/main.rs b/apps/server/src/main.rs index f7fb93bae8c1..f1df4dab7d22 100644 --- a/apps/server/src/main.rs +++ b/apps/server/src/main.rs @@ -144,7 +144,7 @@ async fn main() { } } - #[allow(unused)] + #[cfg(not(feature = "assets"))] let state = AppState { auth }; let (node, router) = match Node::new( diff --git a/core/crates/sync/tests/mock_instance.rs b/core/crates/sync/tests/mock_instance.rs index e3bf0fe9948a..c4f5fc13eaa0 100644 --- a/core/crates/sync/tests/mock_instance.rs +++ b/core/crates/sync/tests/mock_instance.rs @@ -1,5 +1,6 @@ use sd_core_sync::*; use sd_prisma::prisma; +use sd_sync::CompressedCRDTOperations; use sd_utils::uuid_to_bytes; use prisma_client_rust::chrono::Utc; @@ -122,7 +123,7 @@ impl Instance { ingest .event_tx .send(ingest::Event::Messages(ingest::MessagesEvent { - messages, + messages: CompressedCRDTOperations::new(messages), has_more: false, instance_id: instance1.id, }))