DATAMONGO-1558 - Upgrade MongoDB server version to, and add build profile for MongoDB 3.4.

Added MongoDB 3.4 profile to pom.xml and upgraded to MongoDB 3.4 on travis-ci.
Delete assertion checking property that has been removed in MongoDB 3.4 (see: https://jira.mongodb.org/browse/SERVER-24928)
This commit is contained in:
Christoph Strobl
2016-12-12 15:50:12 +01:00
parent 794756d055
commit 5ebbf93cf9
3 changed files with 13 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ env:
- PROFILE=mongo31
- PROFILE=mongo32
- PROFILE=mongo33
- PROFILE=mongo34
- PROFILE=mongo34-next
# Current MongoDB version is 2.4.2 as of 2016-04, see https://github.com/travis-ci/travis-ci/issues/3694
@@ -21,7 +22,7 @@ env:
addons:
apt:
sources:
- mongodb-3.2-precise
- mongodb-3.4-precise
packages:
- mongodb-org-server
- mongodb-org-shell

11
pom.xml
View File

@@ -173,11 +173,20 @@
</profile>
<profile>
<id>mongo34</id>
<properties>
<mongo>3.4.0</mongo>
</properties>
</profile>
<profile>
<id>mongo34-next</id>
<properties>
<mongo>3.4.0-SNAPSHOT</mongo>
<mongo>3.4.1-SNAPSHOT</mongo>
</properties>
<repositories>

View File

@@ -121,7 +121,7 @@ public class ReactiveMongoTemplateExecuteTests {
subscriber.awaitAndAssertNextValueCount(1);
subscriber.assertValuesWith(document -> {
assertThat(document, hasKey("waitedMS"));
assertThat(document.get("ok", Double.class), is(closeTo(1D, 0D)));
assertThat(document, hasKey("cursor"));
});
}