Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15)

Issue 7579043: code review 7579043: ssh/test: deflake session test. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by agl1
Modified:
13 years, 7 months ago
Reviewers:
CC:
golang-dev, rsc, extra
Visibility:
Public.

Description

ssh/test: deflake session test. The session test previously had a one second timeout for the output of stty and this was leading to flakiness. This change removes the timeout since go test has a generic timeout mechanism. Additionally, the test was looking for "-echo" in the output to test the value of the echo flag. However, there are also typically "echoe", "echok" and "echonl" flags, and "-echo" could be a prefix of any of time. Thus we now also match a trailing space.

Patch Set 1 #

Patch Set 2 : diff -r 983a4287662a https://code.google.com/p/go.crypto/ #

Patch Set 3 : diff -r 983a4287662a https://code.google.com/p/go.crypto/ #

Patch Set 4 : diff -r 983a4287662a https://code.google.com/p/go.crypto/ #

Patch Set 5 : diff -r 983a4287662a https://code.google.com/p/go.crypto/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -16 lines) Patch
M ssh/test/session_test.go View 1 2 2 chunks +5 lines, -16 lines 0 comments Download

Messages

Total messages: 4
agl1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.crypto/
13 years, 7 months ago (2013-03-07 17:59:55 UTC) #1
rsc
LGTM
13 years, 7 months ago (2013-03-07 18:03:14 UTC) #2
extra
On 2013/03/07 17:59:55, agl1 wrote: > Hello mailto:golang-dev@googlegroups.com (cc: mailto:golang-dev@googlegroups.com), > > I'd like you ...
13 years, 7 months ago (2013-03-07 18:12:12 UTC) #3
agl1
13 years, 7 months ago (2013-03-08 15:10:05 UTC) #4
*** Submitted as
https://code.google.com/p/go/source/detail?r=8dd5caec1eae&repo=crypto ***

ssh/test: deflake session test.

The session test previously had a one second timeout for the output of
stty and this was leading to flakiness. This change removes the timeout
since go test has a generic timeout mechanism.

Additionally, the test was looking for "-echo" in the output to test
the value of the echo flag. However, there are also typically "echoe",
"echok" and "echonl" flags, and "-echo" could be a prefix of any of
time. Thus we now also match a trailing space.

R=golang-dev, rsc, extraterrestrial.neighbour
CC=golang-dev
https://codereview.appspot.com/7579043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b