Skip to content

Commit

Permalink
Stabilize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Aug 25, 2024
1 parent 0e49ab0 commit feb2efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bind-backend-proxy/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,13 +459,13 @@ it('notifies about actions and subscriptions', async () => {
app.on('backendGranted', (action, meta, latency) => {
expect(typeof action.type).toEqual('string')
expect(typeof meta.id).toEqual('string')
expect(latency > 1 && latency < 500).toBe(true)
expect(latency > 1 && latency < 800).toBe(true)

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

View workflow job for this annotation

GitHub Actions / Node.js Latest Full

Unhandled error

AssertionError: expected false to be true // Object.is equality - Expected + Received - true + false ❯ Array.<anonymous> bind-backend-proxy/index.test.ts:462:42 ❯ Object.emit node_modules/.pnpm/[email protected]/node_modules/nanoevents/index.js:10:19 ❯ Object.approved bind-backend-proxy/index.js:177:23 ❯ Stream.<anonymous> bind-backend-proxy/index.js:60:38 ❯ Stream.emit node:events:520:28 ❯ drain node_modules/.pnpm/[email protected]/node_modules/through/index.js:36:16 ❯ Stream.stream.queue.stream.push node_modules/.pnpm/[email protected]/node_modules/through/index.js:45:5 ❯ Parser.parser.onValue node_modules/.pnpm/[email protected]_r3os6ifnv5rfzwtsmjig3b325i/node_modules/JSONStream/index.js:118:16 ❯ Parser.proto.emit node_modules/.pnpm/[email protected]/node_modules/jsonparse/jsonparse.js:337:8 ❯ Parser.proto.pop node_modules/.pnpm/[email protected]/node_modules/jsonparse/jsonparse.js:332:8 This error originated in "bind-backend-proxy/index.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 "notifies about actions and subscriptions". 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.

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

View workflow job for this annotation

GitHub Actions / Node.js 18 Quick

Unhandled error

AssertionError: expected false to be true // Object.is equality - Expected + Received - true + false ❯ Array.<anonymous> bind-backend-proxy/index.test.ts:462:42 ❯ Object.emit node_modules/.pnpm/[email protected]/node_modules/nanoevents/index.js:10:19 ❯ Object.approved bind-backend-proxy/index.js:177:23 ❯ Stream.<anonymous> bind-backend-proxy/index.js:60:38 ❯ Stream.emit node:events:517:28 ❯ drain node_modules/.pnpm/[email protected]/node_modules/through/index.js:36:16 ❯ Stream.stream.queue.stream.push node_modules/.pnpm/[email protected]/node_modules/through/index.js:45:5 ❯ Parser.parser.onValue node_modules/.pnpm/[email protected]_r3os6ifnv5rfzwtsmjig3b325i/node_modules/JSONStream/index.js:118:16 ❯ Parser.proto.emit node_modules/.pnpm/[email protected]/node_modules/jsonparse/jsonparse.js:337:8 ❯ Parser.proto.pop node_modules/.pnpm/[email protected]/node_modules/jsonparse/jsonparse.js:332:8 This error originated in "bind-backend-proxy/index.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 "notifies about actions and subscriptions". 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.
events.push('backendGranted')
})
app.on('backendProcessed', (action, meta, latency) => {
expect(typeof action.type).toEqual('string')
expect(typeof meta.id).toEqual('string')
expect(latency > 1 && latency < 500).toBe(true)
expect(latency > 1 && latency < 800).toBe(true)
events.push('backendProcessed')
})
let client = await app.connect('10', { headers: { lang: 'fr' } })
Expand Down

0 comments on commit feb2efd

Please sign in to comment.