magic-wormhole / magic-wormhole.rs

Rust implementation of Magic Wormhole, with new features and enhancements
European Union Public License 1.2
722 stars 78 forks source link

Improve the tests a bit #110

Closed piegamesde closed 3 years ago

piegamesde commented 3 years ago

At the moment, the tests send ./examples/example-file.bin and receive it as ./example-file.bin. The latter must stop, it's polluting the local repository and it's probably a source of impurity. It should be written to a temporary location instead.

While we're at it, maybe we can also remove ./examples/example-file.bin and instead generate it on the fly. Writing a few MB to /tmp won't hurt and probably is preferable over having that test data checked out.

That examples folder can then be removed, as its more a test than an example of how to use the API anyway. Adding useful examples is a story for another time. And test_file_rust2rust should cover all the functionality of that example anyways.

piegamesde commented 3 years ago

Blocked by #120