lttng: Stabilize CriticalPathTest
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tue, 28 Jun 2016 18:11:24 +0000 (14:11 -0400)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Wed, 29 Jun 2016 18:03:58 +0000 (14:03 -0400)
commit2fbba798d35c546212189d546d3123b6b7b91110
tree2ef685d98c23d0ca858a47908a65cd77261941a6
parent7992e4cc35a1aebdec787d99bed5a80022b3e65a
lttng: Stabilize CriticalPathTest

To reproduce the issue:
Inside CriticalPathView.CriticalPathContentProvider.BuildThread.run()
add a Thread.sleep(5000) just before the refresh() call.

It fails because we get all the tree items of the Critical Path view
before the algorithm and the redrawing is done. Since not all of this
process is done in a job, the waitForJobs is not sufficient. Instead,
wait for the UI to update in the state we want to "assert" on.

Bug: 496588
Change-Id: I2617b017f1d94f000600cd2f25ccce98b3cfe5be
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/76153
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/CriticalPathTest.java
This page took 0.025128 seconds and 5 git commands to generate.