Skip to content

Commit

Permalink
Stabilize test
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Aug 25, 2024
1 parent e9f9373 commit c85c0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bind-backend-proxy/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ it('notifies about actions and subscriptions', async () => {
let client = await app.connect('10', { headers: { lang: 'fr' } })
client.log.add({ type: 'A' })
client.log.add({ channel: 'a', type: 'logux/subscribe' })
await setTimeout(600)
await setTimeout(800)

expect(app.log.actions()).toEqual([

Check failure on line 476 in bind-backend-proxy/index.test.ts

View workflow job for this annotation

GitHub Actions / Node.js 18 Quick

bind-backend-proxy/index.test.ts > notifies about actions and subscriptions

AssertionError: expected [ …(2) ] to deeply equal [ { type: 'A' }, …(5) ] - Expected + Received Array [ Object { + "action": Object { "type": "A", + }, + "id": "1 10:1:1 0", + "reason": "error", + "type": "logux/undo", }, Object { + "action": Object { "channel": "a", "type": "logux/subscribe", - }, - Object { - "id": "1 10:1:1 0", - "type": "logux/processed", - }, - Object { - "type": "a/load1", }, - Object { - "type": "a/load2", - }, - Object { "id": "2 10:1:1 0", - "type": "logux/processed", + "reason": "error", + "type": "logux/undo", }, ] ❯ bind-backend-proxy/index.test.ts:476:29

Check failure on line 476 in bind-backend-proxy/index.test.ts

View workflow job for this annotation

GitHub Actions / Node.js Latest Full

bind-backend-proxy/index.test.ts > notifies about actions and subscriptions

AssertionError: expected [ …(2) ] to deeply equal [ { type: 'A' }, …(5) ] - Expected + Received Array [ Object { + "action": Object { "type": "A", + }, + "id": "1 10:1:1 0", + "reason": "error", + "type": "logux/undo", }, Object { + "action": Object { "channel": "a", "type": "logux/subscribe", - }, - Object { - "id": "1 10:1:1 0", - "type": "logux/processed", - }, - Object { - "type": "a/load1", }, - Object { - "type": "a/load2", - }, - Object { "id": "2 10:1:1 0", - "type": "logux/processed", + "reason": "error", + "type": "logux/undo", }, ] ❯ bind-backend-proxy/index.test.ts:476:29

Check failure on line 476 in bind-backend-proxy/index.test.ts

View workflow job for this annotation

GitHub Actions / Node.js 18 Quick

bind-backend-proxy/index.test.ts > notifies about actions and subscriptions

AssertionError: expected [ …(2) ] to deeply equal [ { type: 'A' }, …(5) ] - Expected + Received Array [ Object { + "action": Object { "type": "A", + }, + "id": "1 10:1:1 0", + "reason": "error", + "type": "logux/undo", }, Object { + "action": Object { "channel": "a", "type": "logux/subscribe", - }, - Object { - "id": "1 10:1:1 0", - "type": "logux/processed", - }, - Object { - "type": "a/load1", }, - Object { - "type": "a/load2", - }, - Object { "id": "2 10:1:1 0", - "type": "logux/processed", + "reason": "error", + "type": "logux/undo", }, ] ❯ bind-backend-proxy/index.test.ts:476:29
{ type: 'A' },
Expand Down

0 comments on commit c85c0de

Please sign in to comment.