Skip to content

Commit 0c593d7

Browse files
committed
fix: integration test
1 parent b55a401 commit 0c593d7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

server/src/test/java/org/eclipse/openvsx/ExtensionServiceDeleteTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,16 @@
4848
* <p>
4949
* Without an extension-row lock, the delete-all operation may accidentally remove the other
5050
* publisher's newly committed version, which is an unauthorized side effect. With the lock,
51-
* the publish is forced to wait until the delete finishes, preventing any unintended data loss.
51+
* the publishing is forced to wait until the delete finishes, preventing any unintended data loss.
5252
* <p>
5353
* The race condition is deliberately triggered by intercepting the call to
5454
* {@link RepositoryService#isDeleteAllVersions} using a spy, which pauses the delete operation
5555
* just long enough for the concurrent publish to slip in.
5656
*/
57-
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
58-
@ActiveProfiles("test")
57+
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties = {
58+
"ovsx.elasticsearch.enabled=false"
59+
})
60+
@ActiveProfiles("test_db")
5961
class ExtensionServiceDeleteTest {
6062

6163
private static final String NAMESPACE = "race-testns";

0 commit comments

Comments
 (0)