Fix a race condition with testCreateStudyWithErrorDuringCaseImport wich fail intermittently - #1060
Conversation
…ich fail intermittently
📝 WalkthroughWalkthroughThe change removes optimistic-lock exception handling from study deletion. It also updates network import failure stubs and tests to use HTTP 200 while preserving asynchronous failure notifications and cleanup checks. ChangesStudy deletion
Asynchronous network import handling
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/test/java/org/gridsuite/study/server/utils/wiremock/NetworkConversionServerStubs.java (1)
148-148: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRename the helper to reflect asynchronous failure.
stubImportNetworkWithServerErrornow returnsWireMock.ok(). Keep HTTP 200 for this asynchronous failure scenario, but rename the helper and related test identifiers so they do not imply an HTTP 500 response.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/test/java/org/gridsuite/study/server/utils/wiremock/NetworkConversionServerStubs.java` at line 148, Rename stubImportNetworkWithServerError and all related test identifiers to names that describe asynchronous failure without implying an HTTP 500 response. Preserve the WireMock.ok() HTTP 200 response and update every reference consistently.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In
`@src/test/java/org/gridsuite/study/server/utils/wiremock/NetworkConversionServerStubs.java`:
- Line 148: Rename stubImportNetworkWithServerError and all related test
identifiers to names that describe asynchronous failure without implying an HTTP
500 response. Preserve the WireMock.ok() HTTP 200 response and update every
reference consistently.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 6fb0e1a4-1076-4ced-a57e-af6cdc222526
📒 Files selected for processing (3)
src/main/java/org/gridsuite/study/server/service/StudyService.javasrc/test/java/org/gridsuite/study/server/studycontroller/StudyTest.javasrc/test/java/org/gridsuite/study/server/utils/wiremock/NetworkConversionServerStubs.java
|



PR Summary