Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure of org.eclipse.ui.tests.datatransfer.SmartImportTests.testImportModularProjectsWithSameName #1807

Closed
fedejeanne opened this issue Apr 10, 2024 · 0 comments · Fixed by #1810
Labels
test junit test related things

Comments

@fedejeanne
Copy link
Contributor

Failed on this build of #1795

junit.framework.AssertionFailedError: expected:<3> but was:<2>
	at junit.framework.Assert.fail(Assert.java:57)
	at junit.framework.Assert.failNotEquals(Assert.java:329)
	at junit.framework.Assert.assertEquals(Assert.java:78)
	at junit.framework.Assert.assertEquals(Assert.java:234)
	at junit.framework.Assert.assertEquals(Assert.java:241)
	at junit.framework.TestCase.assertEquals(TestCase.java:384)
	at org.eclipse.ui.tests.datatransfer.SmartImportTests.testImportModularProjectsWithSameName(SmartImportTests.java:206)
...
@fedejeanne fedejeanne added the bug Something isn't working label Apr 10, 2024
fedejeanne added a commit to fedejeanne/eclipse.platform.ui that referenced this issue Apr 10, 2024
Remove calls to waitForJobs(...) in SmartImportTests and join the
SmartImportJob instead.

Fixes: eclipse-platform#1427
Fixes: eclipse-platform#1807
@fedejeanne fedejeanne added test junit test related things and removed bug Something isn't working labels Apr 10, 2024
fedejeanne added a commit to fedejeanne/eclipse.platform that referenced this issue Apr 11, 2024
This should help debugging cases were some jobs are not finished because
they are waiting for other (more important) jobs to finish.

Contributes to
eclipse-platform/eclipse.platform.ui#1427
Contributes to
eclipse-platform/eclipse.platform.ui#1807
fedejeanne added a commit to fedejeanne/eclipse.platform.ui that referenced this issue Apr 11, 2024
- Rename "getImportJob" to "createOrGetConfiguredImportJob" to better
express its behavior and also change its JavaDoc.
- Add a new method "getCurrentImportJob" that merely retrieves the
current job (without creating/configuring anything).
- Extract private method in SmartImportTests
- Remove calls to waitForJobs(...) in SmartImportTests and join the
SmartImportJob instead.

Fixes: eclipse-platform#1427
Fixes: eclipse-platform#1807
fedejeanne added a commit to fedejeanne/eclipse.platform.ui that referenced this issue Apr 12, 2024
- Rename "getImportJob" to "createOrGetConfiguredImportJob" to better
express its behavior and also change its JavaDoc.
- Add a new method "getCurrentImportJob" that merely retrieves the
current job (without creating/configuring anything).
- Extract private method in SmartImportTests
- Remove calls to waitForJobs(...) in SmartImportTests and join the
SmartImportJob instead.

Fixes: eclipse-platform#1427
Fixes: eclipse-platform#1807
fedejeanne added a commit to fedejeanne/eclipse.platform.ui that referenced this issue Apr 12, 2024
- Rename "getImportJob" to "createOrGetConfiguredImportJob" to better
express its behavior and also change its JavaDoc.
- Add a new method "getCurrentImportJob" that merely retrieves the
current job (without creating/configuring anything).
- Extract private method in SmartImportTests
- Remove calls to waitForJobs(...) in SmartImportTests and join the
SmartImportJob instead.

Fixes: eclipse-platform#1427
Fixes: eclipse-platform#1807
fedejeanne added a commit to eclipse-platform/eclipse.platform that referenced this issue Apr 18, 2024
This should help debugging cases were some jobs are not finished because
they are waiting for other (more important) jobs to finish.

Contributes to
eclipse-platform/eclipse.platform.ui#1427
Contributes to
eclipse-platform/eclipse.platform.ui#1807
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test junit test related things
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant