Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,10 @@ export const sleepWsConcurrentDbExceedsGrace = actor({
// After the delay, the VFS may be destroyed.
const dbRef = c.db;

await dbRef.execute(
`INSERT INTO sleep_log (event, created_at) VALUES ('handler-${index}-start', ${Date.now()})`,
);

ws.send(JSON.stringify({ type: "started", index }));

// Stagger the delay slightly per index so handlers resume at
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,7 @@ describeDriverMatrix("Actor Sleep Db", (driverTestConfig) => {
{ timeout: 15_000 },
);

// TODO(#4705): Root-cause task-model shutdown ordering for concurrent WebSocket DB handlers and re-enable this coverage.
test.skip(
test(
"concurrent ws handlers with cached db ref get errors when grace period exceeded",
async (c) => {
const { client } = await setupDriverTest(c, driverTestConfig);
Expand Down
Loading