Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

[web3torrent] tests crash when using runInBand #1356

Closed
kerzhner opened this issue Apr 3, 2020 · 0 comments · Fixed by #1361
Closed

[web3torrent] tests crash when using runInBand #1356

kerzhner opened this issue Apr 3, 2020 · 0 comments · Fixed by #1361

Comments

@kerzhner
Copy link
Contributor

kerzhner commented Apr 3, 2020

➜  web3torrent  yarn test --runInBand                   
yarn run v1.17.3
$ npx jest -c ./config/jest/jest.config.js --runInBand
 PASS  src/library/client-seeding.test.ts (12.364s)
 PASS  src/components/torrent-info/TorrentInfo.test.tsx
 PASS  src/pages/upload/Upload.test.tsx
 PASS  src/utils/torrent-status-checker.test.ts
 PASS  src/clients/web3torrent-client.test.ts
 PASS  src/pages/file/File.test.tsx
 PASS  src/pages/welcome/Welcome.test.tsx
 PASS  src/components/torrent-info/download-link/DownloadLink.test.tsx
 PASS  src/components/share-list/ShareList.test.tsx
 PASS  src/components/layout/layout-header/LayoutHeader.test.tsx
 PASS  src/components/layout/layout-footer/LayoutFooter.test.tsx

 RUNS  src/components/torrent-info/download-info/progress-bar/ProgressBar.test.tsx
/Users/misha/dev/statechannels/monorepo/node_modules/bittorrent-tracker/lib/client/tracker.js:23
      if (this.interval.unref) this.interval.unref()
                        ^

TypeError: Cannot read property 'unref' of undefined
    at HTTPTracker.setInterval (/Users/misha/dev/statechannels/monorepo/node_modules/bittorrent-tracker/lib/client/tracker.js:23:25)
    at HTTPTracker._onAnnounceResponse (/Users/misha/dev/statechannels/monorepo/node_modules/bittorrent-tracker/lib/client/http-tracker.js:172:24)
    at _request (/Users/misha/dev/statechannels/monorepo/node_modules/bittorrent-tracker/lib/client/http-tracker.js:52:12)
    at onResponse (/Users/misha/dev/statechannels/monorepo/node_modules/bittorrent-tracker/lib/client/http-tracker.js:166:7)
    at concat (/Users/misha/dev/statechannels/monorepo/node_modules/simple-get/index.js:89:7)
    at IncomingMessage.<anonymous> (/Users/misha/dev/statechannels/monorepo/node_modules/simple-concat/index.js:7:13)
    at Object.onceWrapper (events.js:286:20)
    at IncomingMessage.emit (events.js:203:15)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Likely related to jsdom/jsdom#2617.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant