cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [cayenne] branch master updated: Improve test stability
Date Fri, 30 Jul 2021 13:55:44 GMT
This is an automated email from the ASF dual-hosted git repository.

ntimofeev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/master by this push:
     new 24ee431  Improve test stability
24ee431 is described below

commit 24ee431e49068b3cad9f87a4388bfcfa27ccaf68
Author: Nikita Timofeev <stariy95@gmail.com>
AuthorDate: Fri Jul 30 16:55:35 2021 +0300

    Improve test stability
---
 .../test/java/org/apache/cayenne/exp/parser/ASTFunctionCallDateIT.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cayenne-server/src/test/java/org/apache/cayenne/exp/parser/ASTFunctionCallDateIT.java
b/cayenne-server/src/test/java/org/apache/cayenne/exp/parser/ASTFunctionCallDateIT.java
index 976fdc2..3f3c236 100644
--- a/cayenne-server/src/test/java/org/apache/cayenne/exp/parser/ASTFunctionCallDateIT.java
+++ b/cayenne-server/src/test/java/org/apache/cayenne/exp/parser/ASTFunctionCallDateIT.java
@@ -58,6 +58,8 @@ public class ASTFunctionCallDateIT extends ServerCase {
     @Before
     public void createDataSet() throws Exception {
         Calendar cal = Calendar.getInstance();
+        cal.set(Calendar.MILLISECOND, 0);
+
         int year = cal.get(Calendar.YEAR);
         int month = cal.get(Calendar.MONTH);
         int day = cal.get(Calendar.DAY_OF_MONTH);

Mime
View raw message