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

Issue 12937043: code review 12937043: net: make TestDeadlineRace shorter (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by dvyukov
Modified:
11 years, 9 months ago
Reviewers:
brainman, rsc
CC:
golang-dev
Visibility:
Public.

Description

net: make TestDeadlineRace shorter 1. Do less iterations in short mode 2. Bound number of times SetDeadline is executed

Patch Set 1 #

Patch Set 2 : diff -r 7b621e98c86e https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r 7b621e98c86e https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r fb5377214a40 https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M src/pkg/net/timeout_test.go View 1 3 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 8
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years, 10 months ago (2013-08-14 17:07:10 UTC) #1
rsc
LGTM
11 years, 10 months ago (2013-08-14 17:17:34 UTC) #2
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=a254f0f80b6f *** net: make TestDeadlineRace shorter 1. Do less iterations in short ...
11 years, 10 months ago (2013-08-14 17:20:15 UTC) #3
rsc
FreeBSD is still unhappy. The slow test there is TestTCPStress. Is that one of yours?
11 years, 10 months ago (2013-08-14 17:46:00 UTC) #4
dvyukov
On Wed, Aug 14, 2013 at 9:46 PM, <rsc@golang.org> wrote: > FreeBSD is still unhappy. ...
11 years, 10 months ago (2013-08-14 17:52:31 UTC) #5
brainman
Previous version had a problem where the test would block forever in Read, if SetDeadline ...
11 years, 10 months ago (2013-08-15 01:28:56 UTC) #6
dvyukov
On 2013/08/15 01:28:56, brainman wrote: > Previous version had a problem where the test would ...
11 years, 9 months ago (2013-08-15 16:40:19 UTC) #7
brainman
11 years, 9 months ago (2013-08-16 00:09:19 UTC) #8
Message was sent while issue was closed.
> A single SetDeadline can unblock any number of future Reads, the deadline is
> persistent. So the last SetDeadline will unblock any remaining Reads.

You are right. My fears are misplaced.

Alex
Sign in to reply to this message.

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