Skip to content

Commit 50f2016

Browse files
committed
Fix timezone specific failing test
Update `MvcNamespaceTests` so that the asserted time is in UTC.
1 parent 693ab84 commit 50f2016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-webmvc/src/test/java/org/springframework/web/servlet/config/MvcNamespaceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public void testDefaultConfig() throws Exception {
246246

247247
adapter.handle(request, response, handlerMethod);
248248
assertThat(handler.recordedValidationError).isTrue();
249-
assertThat(handler.date).isInSameDayAs("2009-10-31");
249+
assertThat(handler.date).isInSameDayAs("2009-10-31T00:00:00+00:00");
250250
assertThat(handler.percent).isEqualTo(Double.valueOf(0.9999));
251251

252252
CompositeUriComponentsContributor uriComponentsContributor = this.appContext.getBean(

0 commit comments

Comments
 (0)