Skip to content

Set a much longer max-age for -1 offsets and don't return #904

Set a much longer max-age for -1 offsets and don't return

Set a much longer max-age for -1 offsets and don't return #904

Triggered via pull request October 16, 2024 22:41
Status Failure
Total duration 1m 44s
Artifacts

ts_test.yml

on: pull_request
List packages
6s
List packages
List examples
4s
List examples
Matrix: Build and test
Matrix: check_packages
Matrix: check_and_build_examples
Fit to window
Zoom out
Zoom in

Annotations

10 errors
test/react-hooks.test.tsx > useShape > should unmount cleanly: packages/react-hooks/test/react-hooks.test.tsx#L265
AssertionError: expected [ { …(4) }, …(1) ] to match object [ {}, …(2) ] Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html> - Expected + Received Array [ - Object {}, + Object { + "headers": Object { + "operation": "insert", + "relation": Array [ + "electric_test", + "issues for -1077493146_1_8", + ], + }, + "key": "\"electric_test\".\"issues for -1077493146_1_8\"/\"c5b5e5c9-4b85-4924-9767-94f78cd482da\"", + "offset": "0_0", + "value": Object { + "id": "c5b5e5c9-4b85-4924-9767-94f78cd482da", + "title": "test row", + }, + }, Object { + "headers": Object { + "operation": "insert", + "relation": Array [ + "electric_test", + "issues for -1077493146_1_8", + ], + "txid": 781, + }, + "key": "\"electric_test\".\"issues for -1077493146_1_8\"/\"aebfda68-d780-4a26-bfda-1a82dd5d1a82\"", + "offset": "26820536_0", "value": Object { "id": "aebfda68-d780-4a26-bfda-1a82dd5d1a82", + "title": "other row", }, }, - Object {}, ] ❯ test/react-hooks.test.tsx:265:20
Build and test (packages/react-hooks)
Process completed with exit code 1.
Unhandled error: packages/typescript-client/test/client.test.ts#L173
AssertionError: expected Map{} to deeply equal Map{} - Expected + Received Map { - "\"electric_test\".\"issues for 181577045_0_3\"/\"463cd7e9-0750-44ef-8d57-3f0820c9cb1a\"" => Object { - "id": "463cd7e9-0750-44ef-8d57-3f0820c9cb1a", + "\"electric_test\".\"issues for 181577045_0_3\"/\"88c7c645-a8f4-408f-8627-3b75e566b577\"" => Object { + "id": "88c7c645-a8f4-408f-8627-3b75e566b577", "priority": 10, - "title": "foo1", + "title": "foo2", }, } ❯ test/client.test.ts:173:29 ❯ src/shape.ts:194:7 ❯ Shape.#notify src/shape.ts:193:23 ❯ Shape.#process src/shape.ts:181:12 ❯ src/client.ts:368:17 ❯ ShapeStream.#publish src/client.ts:366:46 ❯ ShapeStream.start src/client.ts:298:22 ❯ processTicksAndRejections node:internal/process/task_queues:95:5 This error originated in "test/client.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should resync from scratch on a shape rotation". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
test/cache.test.ts > HTTP Proxy Cache > should get stale response when max age is passed but cache is not yet revalidated: packages/typescript-client/test/cache.test.ts#L161
AssertionError: expected 'HIT' to be 'STALE' // Object.is equality - Expected + Received - STALE + HIT ❯ test/cache.test.ts:161:38
test/cache.test.ts > HTTP Proxy Cache > should get fresh response when age is passed the stale age: packages/typescript-client/test/cache.test.ts#L196
AssertionError: expected 'HIT' to be 'REVALIDATED' // Object.is equality - Expected + Received - REVALIDATED + HIT ❯ test/cache.test.ts:196:38
test/client.test.ts > Shape > should expose connection status: packages/typescript-client/test/client.test.ts#L252
AssertionError: expected false to be true - Expected + Received - true + false ❯ test/client.test.ts:252:37
test/integration.test.ts > HTTP Sync > should wait properly for updates on an empty shape/table: packages/typescript-client/test/integration.test.ts#L96
AssertionError: expected [ URL{}, URL{}, URL{}, URL{} ] to have a length of 2 but got 4 - Expected + Received - 2 + 4 ❯ test/integration.test.ts:96:27
test/integration.test.ts > HTTP Sync > should parse incoming data: packages/typescript-client/test/integration.test.ts#L298
AssertionError: expected 2 to be above 2 ❯ test/integration.test.ts:298:29
test/integration.test.ts > HTTP Sync > should detect shape deprecation and restart syncing: packages/typescript-client/test/integration.test.ts#L854
AssertionError: expected [ 200, 409, 200, 200 ] to have a length of 1 but got 4 - Expected + Received - 1 + 4 ❯ test/integration.test.ts:854:39 ❯ test/support/test-helpers.ts:32:17 ❯ src/client.ts:368:17 ❯ ShapeStream.#publish src/client.ts:366:46 ❯ ShapeStream.start src/client.ts:298:22
Build and test (packages/typescript-client)
Process completed with exit code 1.