test: add wait time after DOI creation#363
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #363 +/- ##
=======================================
Coverage 97.89% 97.89%
=======================================
Files 18 18
Lines 2377 2379 +2
=======================================
+ Hits 2327 2329 +2
Misses 50 50
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR adds a 3-second wait after DOI creation in the test suite to work around a DataCite API bug that can result in undeletable DOIs on test servers.
Changes:
- Added a
sleep(3)call after DOI creation to allow DataCite to properly process the DOI before attempting subsequent operations
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
To avoid the behavior of the bug documented at datacite/datacite#2307 so that our test servers are not populated with undeletable DOIs.
2c58487 to
27383c6
Compare
|
@sandyhider Please let use know if you continue to see undeletable DOIs continue to be created after this PR is applied. |
|
let's see if helps?! |
To avoid the behavior of the bug documented at datacite/datacite#2307 so that our test servers are not populated with undeletable DOIs.
This PR implements the first option of the three listed below to address the the behavior of the bug documented at datacite/datacite#2307. If undeletable DOIs continue to occur after this PR is applied. We should consider implementing another option instead.