keybase / keybase-bot

exploration with the keybase chat API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

philaris opened this issue · comments

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.