lttng: Fix intermittent failure in MemoryUsageViewTest
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Thu, 18 Feb 2016 21:01:33 +0000 (16:01 -0500)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Fri, 19 Feb 2016 18:41:27 +0000 (13:41 -0500)
commitb2d6540e6b1911e1210d3e94df81b4ca8bbd3d42
tree29ea95a68c25578cfbdde247227a8fe1cbd41fb9
parent9bb4b61e5e5115ab11aa989d74e7ddd6b7fb9ce7
lttng: Fix intermittent failure in MemoryUsageViewTest

It's possible that the series are not there yet after the jobs running.
This is because of an asyncExec in the view code.
To reproduce the issue, in TmfCommonXLineChartViewer.updateDisplay,
change the asyncExec to a timerExec(5000, ...)

We can use a waitUntil to wait until the series are there.

Change-Id: Ic70d3adbec88578c155b53a4f42e51c568180511
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/66865
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
lttng/org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/ust/ui/swtbot/tests/MemoryUsageViewTest.java
This page took 0.025584 seconds and 5 git commands to generate.