Skip to content

Commit

Permalink
feat(SPV-896): adds checks after funds transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmkowalski committed Jul 19, 2024
1 parent 083a573 commit 3852387
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions regression_tests/regression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,26 @@ func TestRegression(t *testing.T) {
assert.GreaterOrEqual(t, int64(-1), transactionTwo.OutputValue)

// Then
balance, err = getBalance(rtConfig.ClientOneURL, userOne.XPriv)
if err != nil {
t.Errorf(errorWhileGettingBalance, err)
}
transactions, err = getTransactions(rtConfig.ClientOneURL, userOne.XPriv)
if err != nil {
t.Errorf(errorWhileGettingTransaction, err)
}
assert.GreaterOrEqual(t, balance, 1)
assert.GreaterOrEqual(t, len(transactions), 1)

balance, err = getBalance(rtConfig.ClientTwoURL, userTwo.XPriv)
if err != nil {
t.Errorf(errorWhileGettingBalance, err)
}
transactions, err = getTransactions(rtConfig.ClientTwoURL, userTwo.XPriv)
if err != nil {
t.Errorf(errorWhileGettingTransaction, err)
}
assert.GreaterOrEqual(t, balance, 1)
assert.GreaterOrEqual(t, len(transactions), 1)
})
}

0 comments on commit 3852387

Please sign in to comment.