Skip to content

Commit

Permalink
fix(backend): combined_payment, ilp service tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BlairCurrey committed Oct 23, 2023
1 parent b9ca3e6 commit 650f06a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/backend/src/tests/outgoingPayment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export async function createOutgoingPayment(
const incomingPayment = await createIncomingPayment(deps, {
walletAddressId: options.walletAddressId
})
await incomingPayment.$query().delete()
const walletAddress = await walletAddressService.get(
options.walletAddressId
)
Expand Down Expand Up @@ -78,7 +79,7 @@ export async function createOutgoingPayment(

interface CreateOutgoingPaymentWithReceiverArgs {
receivingWalletAddress: WalletAddress
method: 'ilp',
method: 'ilp'
incomingPaymentOptions?: Partial<CreateIncomingPaymentOptions>
quoteOptions?: Partial<
Pick<
Expand Down Expand Up @@ -116,8 +117,8 @@ export async function createOutgoingPaymentWithReceiver(
walletAddressId: args.receivingWalletAddress.id
})

const streamServer = await deps.use('streamServer')
const streamCredentials = streamServer.generateCredentials()
const streamCredentialsService = await deps.use('streamCredentialsService')
const streamCredentials = await streamCredentialsService.get(incomingPayment)

const receiver = new Receiver(
incomingPayment.toOpenPaymentsTypeWithMethods(
Expand Down

0 comments on commit 650f06a

Please sign in to comment.