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

Add a cleanUp argument to the FlakyTest.retry combinator #566

Merged
merged 1 commit into from
Oct 11, 2013

Conversation

dotta
Copy link
Member

@dotta dotta commented Oct 11, 2013

As evinced by the recent failures of the pr-scala-integrate-ide job, before
re-running a test we need to make sure that we clean-up any side-effect created
by the previous test run.

@@ -89,10 +92,11 @@ class JUnit4TestFinderTest {
}

runnableJUnitTestClassesIn(cu) matches Set("MyTest")
cu.delete(true, null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you delete it here as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ehm... some left-over :-) Good catch!

@dragos
Copy link
Member

dragos commented Oct 11, 2013

I'd take the opportunity to fix also the typo (flacky instead of flaky), and the miss in string interpolation (%{testName} instead of ${testName}.

@ghprb-bot
Copy link

Test PASSed.
Refer to this link for build results: https://jenkins.scala-ide.org:8496/jenkins/job/ghprb-scala-ide-validator/329/

@ghprb-bot
Copy link

Test PASSed.
Refer to this link for build results: https://jenkins.scala-ide.org:8496/jenkins/job/ghprb-scala-ide-validator/331/

@dotta
Copy link
Member Author

dotta commented Oct 11, 2013

@dragos Good to merge?

@dotta
Copy link
Member Author

dotta commented Oct 11, 2013

Alright, I'm going ahead with this as I don't want the scala-ide-pr-validator job to keep failing.

@dotta
Copy link
Member Author

dotta commented Oct 11, 2013

Actually, this is all wrong, I need to side-effect the cu var!

@dotta
Copy link
Member Author

dotta commented Oct 11, 2013

Alright, I'm going to rework this, the side-effect aren't making the logic very clear.

@ghprb-bot
Copy link

Test FAILed.
Refer to this link for build results: https://jenkins.scala-ide.org:8496/jenkins/job/ghprb-scala-ide-validator/332/

As evinced by the recent failures of the `pr-scala-integrate-ide` job, before
re-running a test we need to make sure that we clean-up any side-effect created
by the previous test run.
@dotta
Copy link
Member Author

dotta commented Oct 11, 2013

Here it is: more verbose, but correct and somewhat easier to maintain.

@ghprb-bot
Copy link

Test PASSed.
Refer to this link for build results: https://jenkins.scala-ide.org:8496/jenkins/job/ghprb-scala-ide-validator/333/

@dotta
Copy link
Member Author

dotta commented Oct 11, 2013

I'm merging this - it's important we get a handle on the scala-ide-pr-validator failures.

dotta added a commit that referenced this pull request Oct 11, 2013
Add a `cleanUp` argument to the `FlakyTest.retry` combinator
@dotta dotta merged commit 5a3ce5c into scala-ide:master Oct 11, 2013
@dotta dotta deleted the wip/add-cleanup-to-flakytest-retry branch October 11, 2013 15:08
@dragos
Copy link
Member

dragos commented Oct 11, 2013

Cool, thanks for the quick reaction!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants