Skip to content

Commit 5b38a57

Browse files
committed
itest: use universe RPC proof courier by default
With this commit we remove the use of the proof.DisabledCourier courier by default and instead use the universe RPC proof courier if nothing is specified in the integration test case list.
1 parent ed1a0e9 commit 5b38a57

File tree

2 files changed

+16
-25
lines changed

2 files changed

+16
-25
lines changed

itest/test_harness.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,14 @@ func setupHarnesses(t *testing.T, ht *harnessTest,
275275
// courier service and attach to test harness.
276276
var proofCourier proof.CourierHarness
277277
switch proofCourierType {
278-
case proof.DisabledCourier:
279-
// Proof courier disabled, do nothing.
280-
281278
case proof.HashmailCourierType:
282279
port := nextAvailablePort()
283280
apHarness := NewApertureHarness(ht.t, port)
284281
proofCourier = &apHarness
285282

286-
case proof.UniverseRpcCourierType:
283+
// If nothing is specified, we use the universe RPC proof courier by
284+
// default.
285+
default:
287286
proofCourier = NewUniverseRPCHarness(t, ht, lndHarness.Bob)
288287
}
289288

itest/test_list_on_test.go

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
package itest
44

5-
import (
6-
"github.com/lightninglabs/taproot-assets/proof"
7-
)
5+
import "github.com/lightninglabs/taproot-assets/proof"
86

97
var testCases = []*testCase{
108
{
@@ -48,14 +46,12 @@ var testCases = []*testCase{
4846
proofCourierType: proof.HashmailCourierType,
4947
},
5048
{
51-
name: "basic send universerpc proof courier",
52-
test: testBasicSendUnidirectional,
53-
proofCourierType: proof.UniverseRpcCourierType,
49+
name: "basic send unidirectional",
50+
test: testBasicSendUnidirectional,
5451
},
5552
{
56-
name: "restart receiver check balance",
57-
test: testRestartReceiverCheckBalance,
58-
proofCourierType: proof.UniverseRpcCourierType,
53+
name: "restart receiver check balance",
54+
test: testRestartReceiverCheckBalance,
5955
},
6056
{
6157
name: "resume pending package send",
@@ -68,14 +64,12 @@ var testCases = []*testCase{
6864
proofCourierType: proof.HashmailCourierType,
6965
},
7066
{
71-
name: "reattempt failed send uni courier",
72-
test: testReattemptFailedSendUniCourier,
73-
proofCourierType: proof.UniverseRpcCourierType,
67+
name: "reattempt failed send uni courier",
68+
test: testReattemptFailedSendUniCourier,
7469
},
7570
{
76-
name: "reattempt failed receive uni courier",
77-
test: testReattemptFailedReceiveUniCourier,
78-
proofCourierType: proof.UniverseRpcCourierType,
71+
name: "reattempt failed receive uni courier",
72+
test: testReattemptFailedReceiveUniCourier,
7973
},
8074
{
8175
name: "offline receiver eventually receives",
@@ -109,14 +103,12 @@ var testCases = []*testCase{
109103
proofCourierType: proof.HashmailCourierType,
110104
},
111105
{
112-
name: "collectible send rpc courier",
113-
test: testCollectibleSend,
114-
proofCourierType: proof.UniverseRpcCourierType,
106+
name: "collectible send",
107+
test: testCollectibleSend,
115108
},
116109
{
117-
name: "collectible group send rpc courier",
118-
test: testCollectibleGroupSend,
119-
proofCourierType: proof.UniverseRpcCourierType,
110+
name: "collectible group send",
111+
test: testCollectibleGroupSend,
120112
},
121113
{
122114
name: "re-issuance",

0 commit comments

Comments
 (0)