Skip to content

Commit

Permalink
don't test lsps2 with lnd client
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Nov 22, 2023
1 parent 8985c4b commit 624183a
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 11 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/integration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ jobs:
testLsps2GetVersions,
testLsps2GetInfo,
testLsps2Buy,
testLsps2HappyFlow,
testLsps2Cltv,
testLsps2NoBalance,
testLsps2ZeroConfUtxo,
testOpenZeroConfChannelOnReceive,
testOpenZeroConfSingleHtlc,
testZeroReserve,
Expand Down Expand Up @@ -123,6 +119,33 @@ jobs:
- lsp: CLN
client: LND

run-lsps2-test:
runs-on: ubuntu-22.04
needs:
- setup-itest
- setup-bitcoin-core
- setup-lnd-client
- setup-lnd-lsp
- setup-cln
- build-lspd
name: test ${{ matrix.lsp }}-lsp ${{ matrix.client }}-client ${{ matrix.test }}
strategy:
max-parallel: 4
matrix:
test: [
testLsps2HappyFlow,
testLsps2Cltv,
testLsps2NoBalance,
testLsps2ZeroConfUtxo,
]
lsp: [
LND,
CLN
]
client: [
CLN
]

steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
25 changes: 18 additions & 7 deletions itest/lspd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ func TestLspd(t *testing.T) {
return
}
testCases := allTestCases
var lndLndTestCases []*testCase
for _, c := range testCases {
if !c.isLsps2 {
lndLndTestCases = append(lndLndTestCases, c)
}
}
runTests(t, testCases, "LND-lsp-CLN-client", lndLspFunc, clnClientFunc)
runTests(t, testCases, "LND-lsp-LND-client", legacyOnionLndLspFunc, lndClientFunc)
runTests(t, lndLndTestCases, "LND-lsp-LND-client", legacyOnionLndLspFunc, lndClientFunc)
runTests(t, testCases, "CLN-lsp-CLN-client", clnLspFunc, clnClientFunc)
}

Expand Down Expand Up @@ -117,6 +123,7 @@ type testCase struct {
name string
test func(t *testParams)
skipCreateLsp bool
isLsps2 bool
timeout time.Duration
}

Expand Down Expand Up @@ -195,20 +202,24 @@ var allTestCases = []*testCase{
test: testLsps2Buy,
},
{
name: "testLsps2HappyFlow",
test: testLsps2HappyFlow,
name: "testLsps2HappyFlow",
test: testLsps2HappyFlow,
isLsps2: true,
},
{
name: "testLsps2Cltv",
test: testLsps2Cltv,
name: "testLsps2Cltv",
test: testLsps2Cltv,
isLsps2: true,
},
{
name: "testLsps2NoBalance",
test: testLsps2NoBalance,
name: "testLsps2NoBalance",
test: testLsps2NoBalance,
isLsps2: true,
},
{
name: "testLsps2ZeroConfUtxo",
test: testLsps2ZeroConfUtxo,
isLsps2: true,
skipCreateLsp: true,
},
}

0 comments on commit 624183a

Please sign in to comment.