Skip to content
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

Fix D1 DO mock and tests #2663

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

lambrospetrou
Copy link
Contributor

@lambrospetrou lambrospetrou commented Sep 5, 2024

The results format parsing changed in https://developers.cloudflare.com/d1/platform/changelog/#2024-07-26 and we always return results.

Also, the rows_read value of the results has some inconsistencies between these tests (d1-mock) and our internal worker tests, off-by-one, so replacing with anything for now.

Testing

bazel run //src/cloudflare/internal/test/d1:d1-api-test
bazel run //src/cloudflare/internal/test/d1:d1-api-test-with-sessions

@lambrospetrou lambrospetrou requested review from a team as code owners September 5, 2024 14:50
The results format parsing changed in https://developers.cloudflare.com/d1/platform/changelog/#2024-07-26
and we always return `results`.

Also, the `rows_read` value of the results has some inconsistencies between
these tests (d1-mock) and our internal worker tests, off-by-one, so replacing
with `anything` for now.
@lambrospetrou lambrospetrou force-pushed the lambros/d1-fix-tests-with-correct-results branch from eb51c66 to 2fe522f Compare September 5, 2024 14:53
@lambrospetrou lambrospetrou merged commit fa19490 into main Sep 5, 2024
13 checks passed
@lambrospetrou lambrospetrou deleted the lambros/d1-fix-tests-with-correct-results branch September 5, 2024 15:51
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