Skip to content

Commit f312178

Browse files
authored
test: testCreateAndDeleteCollection_withUniqueKey fail concurrently ran (#220)
1 parent a83f2cb commit f312178

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.github.thunderz99</groupId>
55
<artifactId>java-cosmos</artifactId>
66
<packaging>jar</packaging>
7-
<version>0.8.26.RC2</version>
7+
<version>0.8.26.RC3</version>
88
<name>${project.groupId}:${project.artifactId}$</name>
99
<description>A lightweight Azure CosmosDB client for Java</description>
1010
<url>https://github.com/thunderz99/java-cosmos</url>

src/test/java/io/github/thunderz99/cosmos/impl/cosmosdb/CosmosImplTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import io.github.thunderz99.cosmos.util.EnvUtil;
77
import io.github.thunderz99.cosmos.util.UniqueKeyUtil;
8+
import org.apache.commons.lang3.RandomStringUtils;
89
import org.junit.jupiter.api.Disabled;
910
import org.junit.jupiter.api.Test;
1011

@@ -19,7 +20,7 @@ class CosmosImplTest {
1920
@Test
2021
void testCreateAndDeleteCollection_withUniqueKey() throws Exception {
2122
var cosmos = new CosmosImpl(EnvUtil.get("COSMOSDB_CONNECTION_STRING"));
22-
String testColl = "UnitTest2-UniqueKey";
23+
String testColl = "UnitTest2-UniqueKey" + RandomStringUtils.randomAlphanumeric(4);
2324
var id1 = "001";
2425
var id2 = "002";
2526
var partition = "Users";

0 commit comments

Comments
 (0)