diff --git a/library/protocol/device-manager/device-manager-protocol.zig b/library/protocol/device-manager/device-manager-protocol.zig index 279513d..d0829aa 100644 --- a/library/protocol/device-manager/device-manager-protocol.zig +++ b/library/protocol/device-manager/device-manager-protocol.zig @@ -212,8 +212,9 @@ test "a tree report fits the push floor with the header folded in" { try std.testing.expectEqual(@as(usize, 48), @sizeOf(ChildAdded)); try std.testing.expectEqual(envelope.post_maximum, Protocol.event_maximum); try std.testing.expect(Protocol.event_maximum <= envelope.post_maximum); - // Ten records per enumerate reply — what the old count-header layout carried. - try std.testing.expectEqual(@as(usize, 10), entries_per_reply); + // Seven records per enumerate reply: (packet_maximum 256 - prefix 16) / 32. + // (The old count-header layout carried ten; this asserts the current shape.) + try std.testing.expectEqual(@as(usize, 7), entries_per_reply); } test "the verb and event numbering, and the device id in the header" {