webtorrent / create-torrent

Create .torrent files
https://webtorrent.io
MIT License
341 stars 93 forks source link

fix: tests... #172

Closed ThaUnknown closed 2 years ago

ThaUnknown commented 2 years ago

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update [X] Bug fix [ ] New feature [ ] Other, please explain:

What changes did you make? (Give an overview) Fixed tests, I don't know how!!!! Node 16 added some FS path verification which is.... fucky to say the least: https://nodejs.org/en/blog/release/v16.0.0/#semver-major-commits https://github.com/nodejs/node/pull/35187

Waiting a single process tick fixes this issue. Why? I don't know!

ThaUnknown commented 2 years ago

woah there! https://github.com/webtorrent/create-torrent/pull/167/