From 8056b5afd626ebf200118e92a21b3d844982f4ed Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Wed, 10 Jun 2026 06:50:56 +0200 Subject: [PATCH] test(wallet-storage): add missing wallet_group_id in test initializers PR #3772 added the wallet_group_id field to WalletMetadataEntry but missed three test initializers in platform-wallet-storage, which only compile under --all-features. This broke the macOS workspace-tests CI job on every PR (E0063 in sqlite_persist_roundtrip.rs). The sqlite persister doesn't persist the field yet, so the tests only need it filled: the wallet's own id where one is in scope (matching the documented group-of-one fallback), zeroes otherwise. Co-Authored-By: Claude Fable 5 --- .../rs-platform-wallet-storage/tests/sqlite_buffer_semantics.rs | 1 + .../tests/sqlite_delete_buffer_reconcile.rs | 1 + .../rs-platform-wallet-storage/tests/sqlite_persist_roundtrip.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/rs-platform-wallet-storage/tests/sqlite_buffer_semantics.rs b/packages/rs-platform-wallet-storage/tests/sqlite_buffer_semantics.rs index 45f870de35..68ed59a766 100644 --- a/packages/rs-platform-wallet-storage/tests/sqlite_buffer_semantics.rs +++ b/packages/rs-platform-wallet-storage/tests/sqlite_buffer_semantics.rs @@ -311,6 +311,7 @@ fn tc023_one_flush_is_one_transaction() { cs.core = Some(core_with_height(7, 7)); cs.wallet_metadata = Some(WalletMetadataEntry { network: Network::Testnet, + wallet_group_id: w, birth_height: 1, }); let mut balances = BTreeMap::new(); diff --git a/packages/rs-platform-wallet-storage/tests/sqlite_delete_buffer_reconcile.rs b/packages/rs-platform-wallet-storage/tests/sqlite_delete_buffer_reconcile.rs index 17bbdf7665..bfe7b455b0 100644 --- a/packages/rs-platform-wallet-storage/tests/sqlite_delete_buffer_reconcile.rs +++ b/packages/rs-platform-wallet-storage/tests/sqlite_delete_buffer_reconcile.rs @@ -31,6 +31,7 @@ fn full_changeset(synced: u32) -> PlatformWalletChangeSet { let mut cs = PlatformWalletChangeSet::default(); cs.wallet_metadata = Some(WalletMetadataEntry { network: Network::Testnet, + wallet_group_id: [0u8; 32], birth_height: 0, }); cs.core = Some(CoreChangeSet { diff --git a/packages/rs-platform-wallet-storage/tests/sqlite_persist_roundtrip.rs b/packages/rs-platform-wallet-storage/tests/sqlite_persist_roundtrip.rs index 6c094b08c0..3004b16fc8 100644 --- a/packages/rs-platform-wallet-storage/tests/sqlite_persist_roundtrip.rs +++ b/packages/rs-platform-wallet-storage/tests/sqlite_persist_roundtrip.rs @@ -65,6 +65,7 @@ fn tc013_wallet_metadata_roundtrip() { let cs = PlatformWalletChangeSet { wallet_metadata: Some(WalletMetadataEntry { network: Network::Testnet, + wallet_group_id: w, birth_height: 12345, }), ..Default::default()