Skip to content

test: cover double-start RUNTIME_ALREADY_STARTED error (Issue #126) - #195

Open
rafaio1 wants to merge 1 commit into
Lilly-Protocol:mainfrom
rafaio1:bounty/issue-126-double-start-error
Open

test: cover double-start RUNTIME_ALREADY_STARTED error (Issue #126)#195
rafaio1 wants to merge 1 commit into
Lilly-Protocol:mainfrom
rafaio1:bounty/issue-126-double-start-error

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 26, 2026

Copy link
Copy Markdown

Summary

Adds tests verifying that AgentRuntime.start() correctly rejects a second invocation with RUNTIME_ALREADY_STARTED and does not emit duplicate lifecycle events.

Tests Added

  • ✅ Second start() call throws RUNTIME_ALREADY_STARTED with correct message
  • runtime.started event emitted exactly once even when double-start attempted

Verification

All 2 tests pass locally via npx vitest run tests/runtime/double-start-error.test.ts.

Closes #126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bounty: $30] Add test covering double-start RUNTIME_ALREADY_STARTED error

1 participant