From 83b1e99a616d8d12fc75d7ffb6e3b76381ae354b Mon Sep 17 00:00:00 2001 From: Nikita Sivukhin Date: Mon, 4 Aug 2025 12:53:07 +0400 Subject: [PATCH] fix compilation --- packages/turso-sync/src/sync_server/test.rs | 2 +- tests/Cargo.toml | 4 ++-- tests/integration/functions/test_wal_api.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/turso-sync/src/sync_server/test.rs b/packages/turso-sync/src/sync_server/test.rs index 32b9667b4..fed11fc57 100644 --- a/packages/turso-sync/src/sync_server/test.rs +++ b/packages/turso-sync/src/sync_server/test.rs @@ -187,7 +187,7 @@ impl SyncServer for TestSyncServer { let frame = &frames[offset..offset + FRAME_SIZE]; match session.conn.wal_insert_frame(frame_no as u32, frame) { Ok(info) => { - if info.is_commit { + if info.is_commit_frame() { if session.in_txn { session.conn.wal_insert_end()?; session.in_txn = false; diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 445e1e335..9353fa47b 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -17,8 +17,8 @@ path = "integration/mod.rs" [dependencies] anyhow.workspace = true env_logger = "0.10.1" -turso_core = { path = "../core" } -turso = { path = "../bindings/rust" } +turso_core = { path = "../core", features = ["conn_raw_api"] } +turso = { path = "../bindings/rust", features = ["conn_raw_api"] } tokio = { version = "1.47", features = ["full"] } rusqlite = { version = "0.34", features = ["bundled"] } tempfile = "3.0.7" diff --git a/tests/integration/functions/test_wal_api.rs b/tests/integration/functions/test_wal_api.rs index 614eb795b..2c1e2c509 100644 --- a/tests/integration/functions/test_wal_api.rs +++ b/tests/integration/functions/test_wal_api.rs @@ -140,7 +140,7 @@ fn test_wal_frame_transfer_schema_changes() { for frame_id in 1..=conn1.wal_frame_count().unwrap() as u32 { conn1.wal_get_frame(frame_id, &mut frame).unwrap(); let info = conn2.wal_insert_frame(frame_id, &frame).unwrap(); - if info.is_commit { + if info.is_commit_frame() { commits += 1; } }