Skip to content

feat(KV): fix statusText in the Workers KV tests #4012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

teresalves
Copy link
Contributor

@teresalves teresalves commented Apr 23, 2025

Just improving the already existing KV binding tests

Copy link

github-actions bot commented Apr 23, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@teresalves teresalves force-pushed the teresalves/kv-fix-tests branch from b57d11c to d79b5b4 Compare April 23, 2025 15:24
@teresalves teresalves marked this pull request as ready for review April 23, 2025 16:16
@teresalves teresalves requested review from a team as code owners April 23, 2025 16:16
@teresalves teresalves force-pushed the teresalves/kv-fix-tests branch from 555f388 to 4cc2ccd Compare April 23, 2025 16:40
});

await assert.rejects(
env.KV.get(['key-not-json', 'key2'], { type: 'banana' }),
{
message: 'KV GET_BULK failed: 500 Internal Server Error',
message:
'KV GET_BULK failed: 500 "banana" is not a valid type. Use "json" or "text"',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This needs to be 400 instead of 500, that should get the test (and thus CI checks) to pass.

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.

2 participants