Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upTests don't work on Windows #429
Closed
Labels
Comments
This comment has been minimized.
This comment has been minimized.
|
So i found the problem and solved it. Just needed to use path.resolve and also do child.spawn("node"...[CMD,....,...] This is because a windows system doesn't use the shebang so it might not know how to execute a js file. Spawning using node and node will understand how to read this. Small issue silly as it sounds, is i don't know how to send a pull request. |
josephfrazier
pushed a commit
to josephfrazier/webtorrent
that referenced
this issue
Oct 4, 2015
josephfrazier
pushed a commit
to josephfrazier/webtorrent
that referenced
this issue
Oct 4, 2015
See webtorrent#429 (comment) > This is because a windows system doesn't use the shebang so it might > not know how to execute a js file. Spawning using node and node will > understand how to read this.
This was referenced Oct 4, 2015
This comment has been minimized.
This comment has been minimized.
|
My curiosity got the best of me and I tried this out in a Windows 10 VM: It turns out this is a long-standing issue, but |
josephfrazier
pushed a commit
to josephfrazier/webtorrent
that referenced
this issue
Oct 7, 2015
This allows Windows to run the tests, as promised in webtorrent#429 (comment) Note that there are a couple of outstanding failures on Windows: # client.seed: filesystem path to folder with one file, string not ok 8 should be equal --- operator: equal expected: '3a686c32404af0a66913dd5f8d2b40673f8d4490' actual: 'e6887b78d89d995876c7cef3476b6fb32c4c4e3d' ... not ok 9 should be equal --- operator: equal expected: |- 'magnet:?xt=urn:btih:3a686c32404af0a66913dd5f8d2b40673f8d4490&dn=folder&tr=udp%3A%2F%2Ftracker.webtorrent.io%3A80' actual: |- 'magnet:?xt=urn:btih:e6887b78d89d995876c7cef3476b6fb32c4c4e3d&dn=folder&tr=udp%3A%2F%2Ftracker.webtorrent.io%3A80'
feross
pushed a commit
to webtorrent/webtorrent-cli
that referenced
this issue
Mar 11, 2016
This allows Windows to run the tests, as promised in webtorrent/webtorrent#429 (comment) Note that there are a couple of outstanding failures on Windows: # client.seed: filesystem path to folder with one file, string not ok 8 should be equal --- operator: equal expected: '3a686c32404af0a66913dd5f8d2b40673f8d4490' actual: 'e6887b78d89d995876c7cef3476b6fb32c4c4e3d' ... not ok 9 should be equal --- operator: equal expected: |- 'magnet:?xt=urn:btih:3a686c32404af0a66913dd5f8d2b40673f8d4490&dn=folder&tr=udp%3A%2F%2Ftracker.webtorrent.io%3A80' actual: |- 'magnet:?xt=urn:btih:e6887b78d89d995876c7cef3476b6fb32c4c4e3d&dn=folder&tr=udp%3A%2F%2Ftracker.webtorrent.io%3A80'
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.

Got this email from a user:
Without doing any investigation, my guess is that tests don't work on Windows because we're using
/instead ofpath.joinall over the tests.