Skip to content

Commit 476e3fc

Browse files
chore: generate
1 parent a12d50e commit 476e3fc

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

packages/app/e2e/performance/timeline/session-parent-hydration-benchmark.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ benchmark("hydrates an orphaned latest turn after a cold session click", async (
4848
const results = [] as Awaited<ReturnType<typeof trial>>[]
4949
for (let run = 0; run < 5; run++) {
5050
results.push(
51-
await withBenchmarkPage(browser, `session-parent-hydration-${mode}-${run}`, (page) => trial(page, mode), testInfo),
51+
await withBenchmarkPage(
52+
browser,
53+
`session-parent-hydration-${mode}-${run}`,
54+
(page) => trial(page, mode),
55+
testInfo,
56+
),
5257
)
5358
}
5459
const timing = results.map((result) => result.metrics.firstCorrectObservedMs!).sort((a, b) => a - b)

packages/app/e2e/performance/unit/session-tab-switch-probe.test.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ test("stops sampling when the session switch fails", async () => {
3030
const failure = new Error("switch failed")
3131
const context = testPage()
3232

33-
await expect(measureSessionSwitch(context.page, input(async () => Promise.reject(failure)))).rejects.toBe(failure)
33+
await expect(
34+
measureSessionSwitch(
35+
context.page,
36+
input(async () => Promise.reject(failure)),
37+
),
38+
).rejects.toBe(failure)
3439

3540
expect(context.stops).toHaveLength(1)
3641
})
@@ -39,7 +44,12 @@ test("stops sampling when the stable wait fails", async () => {
3944
const failure = new Error("stable wait failed")
4045
const context = testPage(failure)
4146

42-
await expect(measureSessionSwitch(context.page, input(async () => {}))).rejects.toBe(failure)
47+
await expect(
48+
measureSessionSwitch(
49+
context.page,
50+
input(async () => {}),
51+
),
52+
).rejects.toBe(failure)
4353

4454
expect(context.stops).toHaveLength(1)
4555
})

packages/app/src/context/server-session.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ describe("server session", () => {
194194

195195
await store.sync("child")
196196

197-
expect(client.requests).toEqual([
198-
{ sessionID: "child", limit: 2, before: undefined },
199-
])
197+
expect(client.requests).toEqual([{ sessionID: "child", limit: 2, before: undefined }])
200198
expect(client.rootRequests).toEqual([{ sessionID: "child", messageID: user.id }])
201199
expect(store.data.message.child).toEqual([user, ...assistants])
202200
expect(store.history.more("child")).toBe(true)

0 commit comments

Comments
 (0)