diff --git a/core/api/test/integration/services/lnd-service.spec.ts b/core/api/test/integration/services/lnd-service.spec.ts index 07ddf39181..117972ab73 100644 --- a/core/api/test/integration/services/lnd-service.spec.ts +++ b/core/api/test/integration/services/lnd-service.spec.ts @@ -500,6 +500,7 @@ describe("Lnd", () => { }) it("parses error message from failures object", async () => { + const channel = "1x1x1" const payArgs = { lnd: lnd1, routes: [ @@ -508,7 +509,7 @@ describe("Lnd", () => { fee_mtokens: "1000", hops: [ { - channel: "1x1x1", + channel, channel_capacity: 1, fee: 1, fee_mtokens: "1000", @@ -528,9 +529,10 @@ describe("Lnd", () => { const err = await getError>(() => payViaRoutes(payArgs), ) + expect(err).toHaveLength(3) - expect(err[0]).toEqual(503) - expect(err[1]).toBe("UnexpectedErrorWhenPayingViaRoute") + expect(err[0]).toEqual(500) + expect(err[1]).toBe("UnexpectedPayViaRoutesFailure") const nestedFailureErr = err[2].failures[0] expect(nestedFailureErr).toHaveLength(3) @@ -543,16 +545,10 @@ describe("Lnd", () => { expect(nestedFailureErr[1]).toBe(err[1]) // @ts-ignore-next-line no-implicit-any error - const nestedErrObj = nestedFailureErr[2].err - expect(nestedErrObj).toBeInstanceOf(Error) - expect(nestedErrObj).toHaveProperty("code") - expect(nestedErrObj).toHaveProperty("metadata") - - const expectedDetails = "invalid public key: unsupported format: 0" - expect(nestedErrObj).toHaveProperty("details", expectedDetails) + expect(nestedFailureErr[2]).toHaveProperty("channel", channel) const parsedErr = parseLndErrorDetails(err) - expect(parsedErr).toBe(expectedDetails) + expect(parsedErr).toBe("UnexpectedPayViaRoutesFailure") }) }) }) diff --git a/dev/docker-compose.deps.yml b/dev/docker-compose.deps.yml index 9bd1630499..d55ea25475 100644 --- a/dev/docker-compose.deps.yml +++ b/dev/docker-compose.deps.yml @@ -178,7 +178,7 @@ services: environment: - MONGO_INITDB_DATABASE=galoy lnd1: - image: lightninglabs/lnd:v0.17.4-beta + image: lightninglabs/lnd:v0.18.0-beta ports: - "10009:10009" volumes: @@ -198,7 +198,7 @@ services: cp /root/.lnd/admin.macaroon /root/.lnd/data/chain/bitcoin/regtest/admin.macaroon /bin/lnd lnd2: - image: lightninglabs/lnd:v0.17.4-beta + image: lightninglabs/lnd:v0.18.0-beta ports: - "10010:10009" volumes: @@ -218,7 +218,7 @@ services: cp /root/.lnd/admin.macaroon /root/.lnd/data/chain/bitcoin/regtest/admin.macaroon /bin/lnd lnd-outside-1: - image: lightninglabs/lnd:v0.17.4-beta + image: lightninglabs/lnd:v0.18.0-beta ports: - "10012:10009" volumes: @@ -238,7 +238,7 @@ services: /bin/lnd depends_on: [bitcoind] lnd-outside-2: - image: lightninglabs/lnd:v0.17.4-beta + image: lightninglabs/lnd:v0.18.0-beta ports: - "10013:10009" volumes: