From dcd4e9fe59a1749a71c4dcb4553b753fe131ad56 Mon Sep 17 00:00:00 2001 From: Bronek Kozicki Date: Tue, 2 Jan 2024 16:43:58 +0000 Subject: [PATCH] Add unit test for redundant payment --- src/test/app/TxQ_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/app/TxQ_test.cpp b/src/test/app/TxQ_test.cpp index ac6bf56f06c..82964ceae9d 100644 --- a/src/test/app/TxQ_test.cpp +++ b/src/test/app/TxQ_test.cpp @@ -1019,6 +1019,9 @@ class TxQ1_test : public beast::unit_test::suite // Fail in preflight env(pay(alice, bob, XRP(-1000)), ter(temBAD_AMOUNT)); + // Fail in preflight + env(pay(alice, alice, XRP(100)), ter(temREDUNDANT)); + // Fail in preclaim env(noop(alice), fee(XRP(100000)), ter(terINSUF_FEE_B)); }