Skip to content

add sleep in FilesIT, clean up assertions #6846#8858

Merged
kcondon merged 1 commit intodevelopfrom
6846-tests
Jul 27, 2022
Merged

add sleep in FilesIT, clean up assertions #6846#8858
kcondon merged 1 commit intodevelopfrom
6846-tests

Conversation

@pdurbin
Copy link
Member

@pdurbin pdurbin commented Jul 25, 2022

What this PR does / why we need it:

FilesIT.testForceReplaceAndUpdate has been failing randomly.

Which issue(s) this PR closes:

Special notes for your reviewer:

If you look at #6846 (comment) you'll see that back in May I identified the line that was failing with a 500 error. In this PR, I added the sleepForLock just before this line.

I also did a tiny bit of clean up of the assertions.

Suggestions on how to test this:

This is a hard one to test since it's so intermittent. Assuming Jenkins is happy with the PR (the tests pass), I vote for merging it and seeing if the intermittent test failures go away, which we'll only know over time.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

No.

Is there a release notes update needed for this change?:

No.

Additional documentation:

None.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 19.756% when pulling f5f35fd on 6846-tests into ba0183d on develop.

@kcondon kcondon self-assigned this Jul 27, 2022
@kcondon kcondon merged commit 38c7976 into develop Jul 27, 2022
@kcondon kcondon deleted the 6846-tests branch July 27, 2022 19:45
@pdurbin pdurbin added this to the 5.12 milestone Aug 2, 2022
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.

edu.harvard.iq.dataverse.api.FilesIT.testForceReplaceAndUpdate Test Failing

4 participants