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

one test where alice tries to remove bob from a team is failing #221

Open
philaris opened this issue Feb 22, 2020 · 0 comments
Open

one test where alice tries to remove bob from a team is failing #221

philaris opened this issue Feb 22, 2020 · 0 comments

Comments

@philaris
Copy link

Thank you keybase team and contributors for the nice code! I am wondering if the following test is passing for you. I have tried it in a Mac and a Linux machine with the same failing.

$ yarn test
yarn run v1.22.0
$ jest --runInBand
 PASS  src/utils/formatAPIObject.test.ts
 PASS  __tests__/deinit.test.ts (35.477s)
 PASS  __tests__/myInfo.test.ts
 FAIL  __tests__/chat.test.ts (60.343s)
  ● Console

    console.log __tests__/chat.test.ts:92
      Caught err on removing existing membership

  ● Chat Methods › Chat createChannel, joinChannel, watchChannel, and leaveChannel › Successfully performs the complete flow

    expect(received).toEqual(expected) // deep equality

    Expected: "leave"
    Received: "text"

      397 |         },
      398 |       })
    > 399 |       expect(read2.messages[0].content.type).toEqual('leave')
          |                                              ^
      400 |       expect(read2.messages[0].sender.username).toEqual(config.bots.bob1.username)
      401 |       await timeout(500)
      402 |       await alice1.chat.send(teamChannel, message)

      at __tests__/chat.test.ts:399:46
      at step (__tests__/chat.test.ts:33:23)
      at Object.next (__tests__/chat.test.ts:14:53)
      at fulfilled (__tests__/chat.test.ts:5:58)

 PASS  __tests__/wallet.test.ts (82.534s)
 PASS  __tests__/kvstore.test.ts (9.209s)
 PASS  __tests__/team.test.ts (17.334s)
  ● Console

    console.log __tests__/team.test.ts:51
      Had to remove bob from alice's playground - left from previous test?

 PASS  __tests__/chat.simple.watch.test.ts (13.274s)
 PASS  __tests__/helpers.test.ts (5.72s)
 PASS  __tests__/race.conditions.test.ts (15.925s)
 PASS  __tests__/init.test.ts (46.193s)

Test Suites: 1 failed, 10 passed, 11 total
Tests:       1 failed, 91 passed, 92 total
Snapshots:   0 total
Time:        290.701s
Ran all test suites.
error Command failed with exit code 1.
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