Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Issue 12796012: Use random debug port in basic_debugger_test. (Closed)

Created:
7 years, 9 months ago by Tom Ball
Modified:
7 years, 9 months ago
Reviewers:
hausner
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Use random debug port in basic_debugger_test. Issue 8232 Committed: https://code.google.com/p/dart/source/detail?r=20634

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -21 lines) Patch
M tests/standalone/debugger/debug_lib.dart View 1 2 3 4 6 3 chunks +36 lines, -21 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Tom Ball
7 years, 9 months ago (2013-03-27 23:53:42 UTC) #1
hausner
LGTM if you can move the port number generation into the library. https://codereview.chromium.org/12796012/diff/1/tests/standalone/debugger/basic_debugger_test.dart File tests/standalone/debugger/basic_debugger_test.dart ...
7 years, 9 months ago (2013-03-28 00:31:21 UTC) #2
Tom Ball
Thanks for the feedback. https://codereview.chromium.org/12796012/diff/1/tests/standalone/debugger/basic_debugger_test.dart File tests/standalone/debugger/basic_debugger_test.dart (right): https://codereview.chromium.org/12796012/diff/1/tests/standalone/debugger/basic_debugger_test.dart#newcode18 tests/standalone/debugger/basic_debugger_test.dart:18: var random = new Random(); ...
7 years, 9 months ago (2013-03-28 18:19:42 UTC) #3
Tom Ball
FYI, I checked the retry logic by opening a service on port 8888 and using: ...
7 years, 9 months ago (2013-03-28 18:29:56 UTC) #4
Tom Ball
Committed patchset #7 manually as r20634 (presubmit successful).
7 years, 9 months ago (2013-03-28 19:02:15 UTC) #5
hausner
7 years, 9 months ago (2013-03-28 19:46:35 UTC) #6
Message was sent while issue was closed.
Nice, thank you.

On 2013/03/28 18:29:56, Tom Ball wrote:
> FYI, I checked the retry logic by opening a service on port 8888 and using:
> 
>   var debugPort = retries < 2 ? 8888 : random.nextInt(32000) + 32000;
> 
> and the failure to find a port reporting using:
> 
>   var debugPort = 8888;

Powered by Google App Engine
This is Rietveld 408576698