You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2021/07/30 13:55:44 UTC

[cayenne] branch master updated: Improve test stability

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 <st...@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);