pkg / sftp

SFTP support for the go.crypto/ssh package
BSD 2-Clause "Simplified" License
1.5k stars 379 forks source link

writeToSequential: improve tests for write errors #499

Closed drakkan closed 2 years ago

drakkan commented 2 years ago

I tryed to improve test cases for write errors as requested in #494

Of course I kept the author for the original commits

drakkan commented 2 years ago

If now you set the seed text to 1234 the test will not fail since the second write will always return an error

drakkan commented 2 years ago

Go ahead and merge as you will with or without addressing the nits.

If you have other comments I will be glad to fix the code, as always thanks!