gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: testing history start row_id also at t


From: gnunet
Subject: [libeufin] branch master updated: testing history start row_id also at the DB level
Date: Sun, 01 Oct 2023 08:07:06 +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 4803251e testing history start row_id also at the DB level
4803251e is described below

commit 4803251e3f721df293c19aaabbf46f14d2ffdac5
Author: MS <ms@taler.net>
AuthorDate: Sun Oct 1 08:06:12 2023 +0200

    testing history start row_id also at the DB level
---
 bank/src/test/kotlin/DatabaseTest.kt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bank/src/test/kotlin/DatabaseTest.kt 
b/bank/src/test/kotlin/DatabaseTest.kt
index ee7d9dd6..b0a9128a 100644
--- a/bank/src/test/kotlin/DatabaseTest.kt
+++ b/bank/src/test/kotlin/DatabaseTest.kt
@@ -293,13 +293,13 @@ class DatabaseTest {
             delta = 2L,
             bankAccountId = 1L // asking as Foo
         )
-        assert(forward.size == 2 && forward[0].dbRowId!! < 
forward[1].dbRowId!!)
+        assert(forward[0].expectRowId() >= 50 && forward.size == 2 && 
forward[0].dbRowId!! < forward[1].dbRowId!!)
         val backward = db.bankTransactionGetHistory(
             start = 50L,
             delta = -2L,
             bankAccountId = 1L // asking as Foo
         )
-        assert(backward.size == 2 && backward[0].dbRowId!! > 
backward[1].dbRowId!!)
+        assert(backward[0].expectRowId() <= 50 && backward.size == 2 && 
backward[0].dbRowId!! > backward[1].dbRowId!!)
     }
     @Test
     fun cashoutTest() {

-- 
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]