Skip to content

Commit 5ebbf93

Browse files
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)
1 parent 794756d commit 5ebbf93

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ env:
1414
- PROFILE=mongo31
1515
- PROFILE=mongo32
1616
- PROFILE=mongo33
17+
- PROFILE=mongo34
1718
- PROFILE=mongo34-next
1819

1920
# Current MongoDB version is 2.4.2 as of 2016-04, see https://github.com/travis-ci/travis-ci/issues/3694
2021
# apt-get starts a MongoDB instance so it's not started using before_script
2122
addons:
2223
apt:
2324
sources:
24-
- mongodb-3.2-precise
25+
- mongodb-3.4-precise
2526
packages:
2627
- mongodb-org-server
2728
- mongodb-org-shell

pom.xml

+10-1
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,20 @@
173173

174174
</profile>
175175

176+
<profile>
177+
178+
<id>mongo34</id>
179+
<properties>
180+
<mongo>3.4.0</mongo>
181+
</properties>
182+
183+
</profile>
184+
176185
<profile>
177186

178187
<id>mongo34-next</id>
179188
<properties>
180-
<mongo>3.4.0-SNAPSHOT</mongo>
189+
<mongo>3.4.1-SNAPSHOT</mongo>
181190
</properties>
182191

183192
<repositories>

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/ReactiveMongoTemplateExecuteTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void executeCommandJsonCommandShouldReturnMultipleResponses() throws Exce
121121
subscriber.awaitAndAssertNextValueCount(1);
122122
subscriber.assertValuesWith(document -> {
123123

124-
assertThat(document, hasKey("waitedMS"));
124+
assertThat(document.get("ok", Double.class), is(closeTo(1D, 0D)));
125125
assertThat(document, hasKey("cursor"));
126126
});
127127
}

0 commit comments

Comments
 (0)