TestLogger in Tast jslog package fails with "JS logs mismatch" |
|
Issue description
There may be a race in the jslog package's unit tests. I saw the following failure when I ran "FEATURES=test emerge-caroline tast-local-tests-cros", but it doesn't seem to happen consistently:
--- FAIL: TestLogger (0.00s) jslog_test.go:74: JS logs mismatch: got "================================================================== fooURL\n50789-11-20 05:06:40 [type] message1\n\n================================================================== barURL\n50789-11-20 05:06:40 [type] message2\n\n", want "================================================================== fooURL\n2018-10-26 19:20:28 [type] message1\n\n================================================================== barURL\n2018-10-26 19:20:28 [type] message2\n\n" --- FAIL: TestLogger_ErrorStackTrace (0.00s)
jslog_test.go:74: JS logs mismatch: got "================================================================== fooURL\n50789-11-20 05:06:40 [error] message\n\tat foo (chrome://foo [11:22])\n\tat bar (chrome://bar [33:44])\n\n", want "==================================
================================ fooURL\n2018-10-26 19:20:28 [error] message\n\tat foo (chrome://foo [11:22])\n\tat bar (chrome://bar [33:44])\n\n"
--- FAIL: TestLogger_InfoStackTrace (0.00s)
jslog_test.go:74: JS logs mismatch: got "================================================================== fooURL\n50789-11-20 05:06:40 [info] message\n\n", want "================================================================== fooURL\n2018-10-26 19:20:28 [info]
message\n\n"
FAIL
FAIL chromiumos/tast/local/chrome/jslog 0.044s
We're apparently not running unit tests, which is tracked by issue 901570 .
,
Nov 5
That's a bug I fixed in the upstream recently. Latest cdp package should work. |
|
►
Sign in to add a comment |
|
Comment 1 by derat@chromium.org
, Nov 3