Commit a404b65a authored by dtu@chromium.org's avatar dtu@chromium.org

[telemetry] Fix testConsoleOutputStream failure

BUG=222657
R=dtu@chromium.org

Review URL: https://codereview.chromium.org/12742009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194723 0039d316-1c4b-4281-b951-d872f2087c98
parent f341ca76
......@@ -30,7 +30,8 @@ class TabConsoleTest(tab_test_case.TabTestCase):
lines = [l for l in stream.getvalue().split('\n') if len(l)]
self.assertTrue(len(lines) >= 1)
for l in lines:
u_l = 'http://localhost:(\d+)/page_that_logs_to_console.html:9'
self.assertTrue(re.match('At %s: Hello, world' % u_l, l))
for line in lines:
prefix = 'http://(.+)/page_that_logs_to_console.html:9'
expected_line = 'At %s: Hello, world' % prefix
self.assertTrue(re.match(expected_line, line))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment