Integration test fixes: reconcile SyncTypeFlags phantom-bit assertions and sync-round counts

- SyncTypeFlags phantom-bit tests used bits 8/9/10 as unmapped examples;
  board/prekey/group now map those, so use bits 11+ (still unmapped).
- rawValueInitNormalizesPhantomBits: highest known bit is now 10, so the
  flags serialize to 2 bytes, not 1.
- Board/fragment/announce sync tests silence the prekey round (added by the
  prekeys feature; default 60s schedule fires at the maintenance barrier).
- DiagnosticsMockContext: conform to the CommandContextProvider members added
  by private-groups (group*) and cashu-chips (sendPublicMessage).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jack
2026-07-06 22:38:45 +02:00
co-authored by Claude Fable 5
parent 94e7f91b7b
commit e0e90af9fd
5 changed files with 28 additions and 11 deletions
@@ -276,9 +276,15 @@ private final class DiagnosticsMockContext: CommandContextProvider {
func clearCurrentPublicTimeline() {}
func clearPrivateChat(_ peerID: PeerID) {}
func sendPublicRaw(_ content: String) {}
func sendPublicMessage(_ content: String) {}
func addLocalPrivateSystemMessage(_ content: String, to peerID: PeerID) {}
func addPublicSystemMessage(_ content: String) {}
func toggleFavorite(peerID: PeerID) {}
func groupCreate(named name: String) -> CommandResult { .handled }
func groupInvite(nickname: String) -> CommandResult { .handled }
func groupRemove(nickname: String) -> CommandResult { .handled }
func groupLeave() -> CommandResult { .handled }
func groupList() -> CommandResult { .handled }
func currentCommandDestination() -> CommandOutputDestination {
if let peerID = selectedPrivateChatPeer {