clean
This commit is contained in:
parent
8f60e81f8e
commit
bfbbcfbb83
1 changed files with 10 additions and 6 deletions
|
|
@ -2,7 +2,7 @@ import { defaultInvoiceExpiry } from '../services/storage/paymentStorage.js'
|
|||
import { Describe, expect, expectThrowsAsync, runSanityCheck, safelySetUserBalance, TestBase } from './testBase.js'
|
||||
import * as Types from '../../proto/autogenerated/ts/types.js'
|
||||
export const ignore = false
|
||||
export const dev = true
|
||||
export const dev = false
|
||||
export default async (T: TestBase) => {
|
||||
await safelySetUserBalance(T, T.user1, 2000)
|
||||
await testSuccessfulExternalPayment(T)
|
||||
|
|
@ -64,9 +64,13 @@ const testSuccesfulReceivedExternalChainPayment = async (T: TestBase) => {
|
|||
const u2 = await T.main.storage.userStorage.GetUser(T.user2.userId)
|
||||
expect(u2.balance_sats).to.be.equal(1000)
|
||||
T.d("user2 balance is now 1000")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const payment2 = await T.externalAccessToOtherLnd.PayAddress(user2Address.address, 1000, 3, "test", { from: 'system', useProvider: false })
|
||||
expect(payment2.txid).to.not.be.undefined
|
||||
T.d("paid 1000 sats to user2's external chain address again")
|
||||
await T.chainTools.mine(1)
|
||||
await new Promise(resolve => setTimeout(resolve, 100))
|
||||
T.d("mined 1 blocks to confirm the payment")
|
||||
const u2_2 = await T.main.storage.userStorage.GetUser(T.user2.userId)
|
||||
expect(u2_2.balance_sats).to.be.equal(2000)
|
||||
T.d("user2 balance is now 2000")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue