1
0
mirror of https://github.com/ACINQ/eclair.git synced 2024-11-19 01:43:22 +01:00
Fix the tests on `master` and update github actions.
This commit is contained in:
Bastien Teinturier 2022-12-29 10:22:10 +01:00 committed by GitHub
parent 2fdc9fa4d3
commit d76d0f6591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 9 deletions

View File

@ -15,7 +15,7 @@ jobs:
timeout-minutes: 90
steps:
- name: Checkout bitcoind master
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: bitcoin/bitcoin
path: bitcoin
@ -37,14 +37,15 @@ jobs:
working-directory: ./bitcoin
- name: Checkout eclair master
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: eclair
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'adopt'
- name: Configure OS settings
run: echo "fs.file-max = 1024000" | sudo tee -a /etc/sysctl.conf

View File

@ -13,15 +13,16 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'adopt'
- name: Cache Maven dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
@ -36,4 +37,4 @@ jobs:
run: mvn test-compile && mvn scoverage:report -DtagsToExclude=external-api
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3

View File

@ -344,7 +344,7 @@ class EclairImplSpec extends TestKitBaseClass with FixtureAnyFunSuiteLike with I
eclair.findRoute(c, 250_000 msat, None)
val routeRequest1 = router.expectMsgType[RouteRequest]
assert(routeRequest1.target == c)
assert(routeRequest1.target.nodeId == c)
assert(routeRequest1.ignore == Router.Ignore.empty)
val unknownNodeId = randomKey().publicKey
@ -353,7 +353,7 @@ class EclairImplSpec extends TestKitBaseClass with FixtureAnyFunSuiteLike with I
router.expectMsg(Router.GetRouterData)
router.reply(routerData)
val routeRequest2 = router.expectMsgType[RouteRequest]
assert(routeRequest2.target == c)
assert(routeRequest2.target.nodeId == c)
assert(routeRequest2.ignore.nodes == Set(b, unknownNodeId))
assert(routeRequest2.ignore.channels == Set(
Router.ChannelDesc(channel1.shortChannelId, a, b),