New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 720155 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
not available
Closed: May 2017
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

EmbeddedTestServer created on Ui Thread will hang forever

Project Member Reported by yolandyan@chromium.org, May 9 2017

Issue description

When EmbeddedTestServer is create on UiThread, the test will hang on that step forever.

This might happen in JUnit4 instrumentation tests, when @UiThreadTest makes @Before run on UiThread, and if a ETS is created in @Before, it hangs the test forever and times out on host python side.

In the local run logcat result, it just keeps sending "cr_TestServer: Still waiting for EmbeddedTestServer service connection."
 
Project Member

Comment 1 by bugdroid1@chromium.org, May 19 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/508534a90769468c845e0f0438fbcb4f4fe38d51

commit 508534a90769468c845e0f0438fbcb4f4fe38d51
Author: yolandyan <yolandyan@chromium.org>
Date: Fri May 19 21:00:26 2017

Add assertion to EmbeddedTestServer creation method

When the EmbeddedTestServer is created on UiThread, the test would
hang forever because it will hang waiting for tasks to post to UI thread

BUG= 720155 

Review-Url: https://codereview.chromium.org/2860673005
Cr-Commit-Position: refs/heads/master@{#473310}

[modify] https://crrev.com/508534a90769468c845e0f0438fbcb4f4fe38d51/net/android/BUILD.gn
[modify] https://crrev.com/508534a90769468c845e0f0438fbcb4f4fe38d51/net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServer.java

Status: Fixed (was: Untriaged)

Sign in to add a comment