╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │184 │ │185 // get the issue out of the map that was edited │ │186 const first_issue_cursor = try event_id_to_issue.getCursor(hash.hashInt(repo_opts.hash, &first_event_id)) orelse return error.NotFound; │ │187 - const first_issue = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │187 + const first_issue_map = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │188 + const first_issue = try evt.read(Repo.DB, repo_opts.hash, arena.allocator(), first_issue_map, .issue); │ │189 │ │190 // make sure the issue's description was correctly edited │ │190 - const first_issue_description_cursor = try first_issue.getCursor(hash.hashInt(repo_opts.hash, "description")) orelse return error.NotFound;│ │191 - const first_issue_description_value = try first_issue_description_cursor.readBytesAlloc(allocator, null); │ │192 - defer allocator.free(first_issue_description_value); │ │193 - try std.testing.expectEqualStrings(events_to_consume[1].data.issue.description, first_issue_description_value); │ │191 + try std.testing.expectEqualStrings(events_to_consume[1].data.issue.description, first_issue.issue.description); │ │192 │ │193 // make sure the issue's tags were correctly edited │ │196 - const tags_cursor = try first_issue.getCursor(hash.hashInt(repo_opts.hash, "tags")) orelse return error.NotFound; │ │197 - const tags_value = try tags_cursor.readBytesAlloc(allocator, null); │ │198 - defer allocator.free(tags_value); │ │199 - try std.testing.expectEqualStrings(events_to_consume[1].data.issue.tags, tags_value); │ │194 + try std.testing.expectEqualStrings(events_to_consume[1].data.issue.tags, first_issue.issue.tags); │ │195 } │ │196 } │ │197 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯