Skip to content

test(disputes): add dispute-resolution refund finality coverage#1381

Merged
Baskarayelu merged 6 commits into
QuickLendX:mainfrom
Kuhai9801:fix/qlx-1324-dispute-refund-finality
Jun 19, 2026
Merged

test(disputes): add dispute-resolution refund finality coverage#1381
Baskarayelu merged 6 commits into
QuickLendX:mainfrom
Kuhai9801:fix/qlx-1324-dispute-refund-finality

Conversation

@Kuhai9801

Copy link
Copy Markdown
Contributor

📝 Description

Adds an end-to-end regression for the funded invoice -> dispute -> review -> resolution -> escrow refund path.

🔧 Changes Made

  • Adds quicklendx-contracts/src/test_dispute_refund_flow.rs.
  • Verifies post-refund alignment across invoice, dispute, escrow, accepted bid, investment, status indexes, and investor token balance.
  • Verifies finality: a second refund and settlement after refund both fail with InvalidStatus and do not move funds.

🧪 Testing

  • rustfmt --check --edition 2021 quicklendx-contracts/src/test_dispute_refund_flow.rs
  • git diff --check
  • Not run locally: cargo test / cargo clippy

🔗 Related Issues

Closes #1324

🧪 How to Test

  1. cd quicklendx-contracts
  2. cargo test test_dispute_refund_flow -- --nocapture

@Kuhai9801 Kuhai9801 marked this pull request as ready for review June 19, 2026 08:17
@Baskarayelu

Copy link
Copy Markdown
Contributor

dispute-resolution refund finality coverage - confirms escrow and investment state land consistently after resolution. merging 👍

@Baskarayelu Baskarayelu merged commit 63778a1 into QuickLendX:main Jun 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a refund-after-dispute resolution test verifying escrow refund finality and investment status alignment

2 participants