Skip to content

test: await ky create route response#116

Open
xgcing wants to merge 1 commit into
tscircuit:mainfrom
xgcing:codex/ky-create-test-race
Open

test: await ky create route response#116
xgcing wants to merge 1 commit into
tscircuit:mainfrom
xgcing:codex/ky-create-test-race

Conversation

@xgcing

@xgcing xgcing commented Jun 18, 2026

Copy link
Copy Markdown

Summary

/claim #2

This tightens the existing ky-backed create route regression test:

  • await the POST /things/create ky request before listing things
  • assert the create route returns { ok: true }
  • verify the persisted thing name and description after listing

The previous test fired the ky POST without awaiting it, so the immediate list request could race the create request and make the coverage nondeterministic.

Verification

  • git diff --check

I could not run the Bun test suite locally because bun is not installed on PATH.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant