Dated the demo cons in the Persistence package from the weekend after seeding, and re-dated the ones already seeded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javierandClaude Opus 5.5 committed 2026-10-25 12:47:23 +01:00
1 parent e0524da525
commit 3a3d2619ad
6 files changed
+77 -32

No files matched your search

@@ -246,9 +246,8 @@ private extension AccountAndCollectingControllerTests {
}
}
/// Runs the body against the session, catalogue, account, and collecting routes, over a migrated, seeded in-memory database, judging events by `now`.
/// Runs the body against the session, catalogue, account, and collecting routes, over a migrated, seeded in-memory database.
func withApp(
now: @escaping @Sendable () -> Date = { .init() },
_ body: @escaping @Sendable (any TestClientProtocol) async throws -> Void
) async throws {
let fluent = try Service(
@@ -266,7 +265,7 @@ private extension AccountAndCollectingControllerTests {
let accounts = AccountRepository(fluent: fluent)
let catalogue = CatalogueRepository(fluent: fluent)
let collecting = CollectingRepository(fluent: fluent, now: now)
let collecting = CollectingRepository(fluent: fluent)
let sessions = SessionStore(trade: .init(fluent: fluent), collecting: collecting)
let router = Router(context: WebsiteRequestContext.self)
@@ -309,8 +308,7 @@ extension AccountAndCollectingControllerTests {
@Test
func `serves the events, and narrows a search to the copies to pick up at one`() async throws {
// 22 September 2026: every demo con is still to come.
try await withApp(now: { Date(timeIntervalSince1970: 1_790_071_200) }) { client in
try await withApp { client in
try await client.execute(uri: "/events", method: .get) { response in
let body = String(buffer: response.body)