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 @@ -323,8 +323,7 @@ describeDriverMatrix("Actor Lifecycle", (driverTestConfig) => {
expect(elapsedMs).toBeLessThan(1_500);
}, 10_000);

// TODO(#4706): Root-cause destroy-during-start lifecycle ordering and re-enable this coverage.
test.skip("onDestroy is called even when actor is destroyed during start", async (c) => {
test("onDestroy is called even when actor is destroyed during start", async (c) => {
const { client } = await setupDriverTest(c, driverTestConfig);

const actorKey = `test-ondestroy-during-start-${Date.now()}`;
Expand All @@ -336,9 +335,19 @@ describeDriverMatrix("Actor Lifecycle", (driverTestConfig) => {
const statePromise = actor.getState();
await actor.destroy();

// Verify onDestroy was called (requires actor to be started)
const state = await statePromise;
expect(state.destroyCalled).toBe(true);
expect(state.startCompleted).toBe(true);

const observer = client.lifecycleObserver.getOrCreate([
"observer",
]);
const events = await observer.getEvents();
expect(events).toContainEqual(
expect.objectContaining({
actorKey,
event: "destroy",
}),
);
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ describeDriverMatrix("Actor Sleep", (driverTestConfig) => {
);
});

// TODO(#4707): Root-cause persistent connection sleep-state behavior and re-enable this coverage.
test.skip("actor sleep persists state with connect", async (c) => {
test("actor sleep persists state with connect", async (c) => {
const { client } = await setupDriverTest(c, driverTestConfig);

// Create actor with persistent connection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,7 @@ describeDriverMatrix("Actor Workflow", (driverTestConfig) => {
});
});

// TODO(#4708): Root-cause failed-step sleep-vs-run-error behavior and re-enable this coverage.
test.skip("failed workflow steps sleep instead of surfacing as run errors", async (c) => {
test("failed workflow steps sleep instead of surfacing as run errors", async (c) => {
const { client } = await setupDriverTest(c, driverTestConfig);
const actor = client.workflowFailedStepActor.getOrCreate([
"workflow-failed-step",
Expand Down
Loading