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

Flaky test into PouchManager.spec.js #1423

Open
cballevre opened this issue Nov 16, 2023 · 0 comments
Open

Flaky test into PouchManager.spec.js #1423

cballevre opened this issue Nov 16, 2023 · 0 comments

Comments

@cballevre
Copy link
Contributor

Yesterday the CI failed on my PR and not on my branch. I looked for what could have cause this error but couldn't find anything. After relaunching the CI, all is green now. I'll put the traces on if anyone finds out

FAIL packages/cozy-pouch-link/src/PouchManager.spec.js
  ● PouchManager › should call on sync with doctype updates
    expect(jest.fn()).toHaveBeenCalledWith(...expected)
    - Expected
    + Received
      Object {
    -   "io.cozy.todos": Array [
    -     Object {
    -       "_id": "1",
    -       "name": "Make replication work",
    -     },
    -     Object {
    -       "_id": "2",
    -       "name": "Profit!",
    -     },
    -   ],
    +   "io.cozy.todos": Array [],
      },
    Number of calls: 1
      216 |     onSync.mockReset()
      217 |     await manager.replicateOnce()
    > 218 |     expect(onSync).toHaveBeenCalledWith({
          |                    ^
      219 |       'io.cozy.todos': [
      220 |         {
      221 |           _id: '1',
      at _callee9$ (packages/cozy-pouch-link/src/PouchManager.spec.js:218:20)
      at tryCatch (node_modules/regenerator-runtime/runtime.js:63:40)
      at Generator.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:293:22)
      at Generator.next (node_modules/regenerator-runtime/runtime.js:118:21)
      at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
      at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
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

No branches or pull requests

1 participant