Skip to content

💾: expect contextual ObjectDB network errors - #1880

Merged
merryman merged 1 commit into
mainfrom
fix-objectdb-network-error-test
Nov 9, 2026
Merged

merryman merged 1 commit into
mainfrom
fix-objectdb-network-error-test

Conversation

@merryman

@merryman merryman commented Nov 9, 2026

Copy link
Copy Markdown
Member

Restore the daily status check on main. Since #1855, lively.resources wraps failed requests in an error naming the method and URL (Cannot GET <url>: <message>.) and keeps the original error as cause. The ObjectDB client test still expected the bare network message, so lively.storage/tests/objectdb-resource-test.js has failed every daily run since that merge. PR checks did not catch it because they only run tests for changed folders.

The test now checks the contextual message and that the original error is preserved as cause, for both _GET and _POST. No runtime code changes.

Without this change the test fails with expected 'Cannot GET http://objectdb.test/objec…' to equal 'network failure'; with it, all 8 tests in the file pass.

Since #1855, lively.resources wraps failed requests in an error whose
message names the method and URL ("Cannot GET <url>: <message>.") and
keeps the original error as `cause`. The ObjectDB client test still
expected the bare network message. Check the contextual message and the
preserved cause for both _GET and _POST instead.
@merryman
merryman merged commit 6940536 into main Nov 9, 2026
7 checks passed
@merryman
merryman deleted the fix-objectdb-network-error-test branch November 9, 2026 10:28
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.

1 participant