go.crypto/ssh: improve test reliability
Fixes issue 3989.
Tested for several hours on an 8 core ec2 instance with
random GOMAXPROC values.
Also, rolls server_test.go into session_test using the
existing dial() framework.
Hello fullung@gmail.com, agl@golang.org, kardianos@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.crypto
14 years, 1 month ago
(2012-08-26 06:38:47 UTC)
#1
Could you point out what changed? I don't have an issue with moving the test, ...
14 years, 1 month ago
(2012-08-27 04:50:27 UTC)
#2
Could you point out what changed? I don't have an issue with moving the test,
but I don't see what was fixed. Did the issue end up being a bad test, and not
anything to do with not checking the proper length?
On 2012/08/26 06:38:47, dfc wrote:
> Hello mailto:fullung@gmail.com, mailto:agl@golang.org,
mailto:kardianos@gmail.com (cc:
> mailto:golang-dev@googlegroups.com),
>
> I'd like you to review this change to
> https://code.google.com/p/go.crypto
> Could you point out what changed? I don't have an issue with moving the ...
14 years, 1 month ago
(2012-08-27 04:56:23 UTC)
#3
> Could you point out what changed? I don't have an issue with moving the
> test, but I don't see what was fixed. Did the issue end up being a bad
> test, and not anything to do with not checking the proper length?
Here are the changes
1. server_test was merged into session_test as it ended up duplicating
a lot of the test ssh server logic.
2. All the Fatal{,f}s that occurred on other goroutines were changed
to Error{,f}s, this was a programming error.
3. The actual cause of the TestServerWindow test failing occasionally
with a short read was the CopyNRandom function should have handled EOF
as io.Copy does.
*** Submitted as http://code.google.com/p/go/source/detail?r=1670f3fc0b9d&repo=crypto *** go.crypto/ssh: improve test reliability Fixes issue 3989. Tested for several ...
14 years, 1 month ago
(2012-08-27 22:06:21 UTC)
#6
Issue 6475063: code review 6475063: go.crypto/ssh: improve test reliability
(Closed)
Created 14 years, 1 month ago by dave_cheney.net
Modified 14 years, 1 month ago
Reviewers:
Base URL:
Comments: 2