Improve error messages in CompletionTest #906#970
Improve error messages in CompletionTest #906#970HeikoKlare merged 1 commit intoeclipse-platform:masterfrom
Conversation
8a863b8 to
4c0b7df
Compare
Test Results 852 files ±0 852 suites ±0 1h 10m 10s ⏱️ - 3m 21s For more details on these failures, see this check. Results for commit d968a8c. ± Comparison against base commit 3792903. ♻️ This comment has been updated with latest results. |
Provide more meaningful error message in case any of the test cases in CompletionTest fails. Particularly also explicitly validate whether the proposal list widget has been disposed concurrently. Contributes to eclipse-platform#906
4c0b7df to
d968a8c
Compare
|
Looks good to me. |
|
In case the widget is disposed right before the check (i.e. between the last access to the widget and that check), then yes, the test will now fail with an assertion error. I would like to avoid the artificial waiting time for the proposals being computed and thus the time the proposal window has to be shown in the test as proposed in #967. |
I agree, I even reproduced this error in Windows by stopping the execution with a breakpoint right before calling I thought maybe one could prevent the focus from being stolen while running tests but I found this in the javadoc of the class Shell and got discouraged.
Tricky issue :-\ |
Provide more meaningful error message in case any of the test cases in
CompletionTestfails. Particularly also explicitly validate whether the proposal list widget has been disposed concurrently. Remove typo in method name.Contributes to #906