Closed rogers0 closed 7 years ago
I think the problem is the test case:
The WriteDeadline indicates that when a stream blocks, it should return with timeout error when the deadline has reached.
But it doesn't indicate that: when the stream is NOT BLOCKING, the write should return a timeout error when deadline has reached.
I'll try to fix the test, and it's really strange that this doesn't happen on my Mac, travis CI and ubuntu...
previous result was got from ubuntu in a virtualbox environment maybe you can reproduce this issue in your virtualbox on mac
I've rewritten the test, try it
@xtaci thanks for your quick fix and sorry about my slow reply. yes, your latest commit fix the test in my virtualbox ubuntu system.
you're welcome. it's all about the semantic of io.Write interface
While building debian package, I find go test fails at high possibility (more than 50% as I tested). Enclosed is the log for both FAIL and OK. Hope you have a clue on this. Thank you!