fix(session): make message reads effectful (#27291)

This commit is contained in:
Shoubhit Dash
2026-05-13 14:40:12 +05:30
committed by GitHub
parent 4b041716fc
commit ccf93f3523
7 changed files with 60 additions and 99 deletions

View File

@@ -767,7 +767,7 @@ it.live("session.processor effect tests record aborted errors and idle state", (
const exit = yield* Fiber.await(run)
yield* Effect.promise(() => seen.promise)
const stored = MessageV2.get({ sessionID: chat.id, messageID: msg.id })
const stored = yield* MessageV2.get({ sessionID: chat.id, messageID: msg.id })
const state = yield* sts.get(chat.id)
off()
@@ -829,7 +829,7 @@ it.live("session.processor effect tests mark interruptions aborted without manua
yield* Fiber.interrupt(run)
const exit = yield* Fiber.await(run)
const stored = MessageV2.get({ sessionID: chat.id, messageID: msg.id })
const stored = yield* MessageV2.get({ sessionID: chat.id, messageID: msg.id })
const state = yield* sts.get(chat.id)
expect(Exit.isFailure(exit)).toBe(true)