Skip to content

Commit a18cb01

Browse files
authored
Merge pull request #54 from mincong-h/dependabot/maven/de.bwaldvogel-mongo-java-server-1.32.0
Bump mongo-java-server from 1.26.0 to 1.32.0
2 parents 1990132 + 2b3ab7f commit a18cb01

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

mongo/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<logbackVersion>1.2.3</logbackVersion>
1818
<mongoVersion>3.6</mongoVersion>
1919
<mongoDriverVersion>3.6.2</mongoDriverVersion>
20-
<mongoJavaServerVersion>1.26.0</mongoJavaServerVersion>
20+
<mongoJavaServerVersion>1.32.0</mongoJavaServerVersion>
2121
<slf4jVersion>1.7.30</slf4jVersion>
2222
</properties>
2323

mongo/src/test/java/io/mincongh/mongodb/IndexIT.java

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,7 @@ public void createIndexes_successTwoCreations() {
8787
// no exception
8888

8989
var indexes = provider.userCollection().listIndexes();
90-
if (provider.isMongoJavaServer()) {
91-
/*
92-
* @impl Mongo Java Server
93-
* @bug One more index is created.
94-
* Adding non-unique non-id index with key {} is not yet implemented
95-
* @see https://github.com/bwaldvogel/mongo-java-server/blob/a3dadcb4d4660fabc7dc01f4270231735aa2a0cb/core/src/main/java/de/bwaldvogel/mongo/backend/AbstractMongoDatabase.java#L754-L757
96-
*
97-
* Expecting:
98-
* <["_id_", "name_1", "name_1"]>
99-
* to contain exactly (and in same order):
100-
* <["_id_", "name_1"]>
101-
* but some elements were not expected:
102-
* <["name_1"]>
103-
*/
104-
assertThat(indexes)
105-
.extracting(idx -> idx.get("name"))
106-
.containsExactly("_id_", "name_1", "name_1");
107-
} else {
108-
assertThat(indexes).extracting(idx -> idx.get("name")).containsExactly("_id_", "name_1");
109-
}
90+
assertThat(indexes).extracting(idx -> idx.get("name")).containsExactly("_id_", "name_1");
11091
}
11192

11293
@Test

0 commit comments

Comments
 (0)