gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: fix test (time issue)


From: gnunet
Subject: [libeufin] branch master updated: fix test (time issue)
Date: Thu, 28 May 2020 14:10:49 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new d6869df  fix test (time issue)
d6869df is described below

commit d6869df91d853c1cf3117833ef0b941c5432f771
Author: MS <ms@taler.net>
AuthorDate: Thu May 28 14:10:44 2020 +0200

    fix test (time issue)
---
 .idea/modules.xml                 | 8 ++++++++
 sandbox/src/test/kotlin/DBTest.kt | 6 ++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..dbca143
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/libeufin.iml" 
filepath="$PROJECT_DIR$/.idea/libeufin.iml" />
+    </modules>
+  </component>
+</project>
\ No newline at end of file
diff --git a/sandbox/src/test/kotlin/DBTest.kt 
b/sandbox/src/test/kotlin/DBTest.kt
index 61eb9c9..5284df6 100644
--- a/sandbox/src/test/kotlin/DBTest.kt
+++ b/sandbox/src/test/kotlin/DBTest.kt
@@ -7,9 +7,11 @@ import org.jetbrains.exposed.sql.transactions.transaction
 import org.junit.Test
 import tech.libeufin.sandbox.PaymentEntity
 import tech.libeufin.sandbox.PaymentsTable
+import tech.libeufin.util.millis
 import tech.libeufin.util.parseDashedDate
 import java.sql.Connection
 import java.time.Instant
+import java.time.LocalDateTime
 
 class DBTest {
     @Test
@@ -37,8 +39,8 @@ class DBTest {
                 PaymentsTable.date.between(
                     parseDashedDate(
                         "1970-01-01"
-                    ).millis,
-                    DateTime.now().millis
+                    ).millis(),
+                    LocalDateTime.now().millis()
                 )
             }.firstOrNull()
         }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]