libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit caf3bfaed25c450d18ce2b392554638928bc1b11
parent c8ee59217de3af90dae76baf5563e9b77a99d623
Author: MS <ms@taler.net>
Date:   Wed, 15 Nov 2023 16:24:38 +0100

nexus fetch

db test to detect payments that were already downloaded

Diffstat:
Mnexus/src/test/kotlin/DatabaseTest.kt | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/nexus/src/test/kotlin/DatabaseTest.kt b/nexus/src/test/kotlin/DatabaseTest.kt @@ -85,14 +85,14 @@ class IncomingPaymentsTest { Random.nextBytes(reservePub) runBlocking { + val inc = genIncPay("reserve-pub") // Checking the reserve is not found. assertFalse(db.isReservePubFound(reservePub)) - assertTrue(db.incomingTalerablePaymentCreate( - genIncPay("reserve-pub"), - reservePub - )) + assertFalse(db.isIncomingPaymentSeen(inc.bankTransferId)) + assertTrue(db.incomingTalerablePaymentCreate(inc, reservePub)) // Checking the reserve is not found. assertTrue(db.isReservePubFound(reservePub)) + assertTrue(db.isIncomingPaymentSeen(inc.bankTransferId)) } } }