Skip to content

Some tests failing depending on timezone #4446

Closed
@sxhinzvc

Description

@sxhinzvc

When running the build, the following tests are failing due to date mismatch, based on the timezone.

MappingMongoConverterUnitTests#projectShouldReadSimpleInterfaceProjection
MappingMongoConverterUnitTests#projectShouldReadSimpleDtoProjection
AbstractEncryptionTestBase#encryptAndDecryptJavaTime

The tests are asserting against LocalDate objects in my timezone, which is UTC-5.

For MappingMongoConverterUnitTests#projectShouldReadSimpleInterfaceProjection:

org.opentest4j.AssertionFailedError: 
expected: 1999-12-01 (java.time.LocalDate)
 but was: 1999-11-30 (java.time.LocalDate)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions