Skip to content

Commit

Permalink
itest: don't sync test nodes to each other
Browse files Browse the repository at this point in the history
Since we now have a main universe server by default, we can disable test
nodes syncing directly to each other by default.
  • Loading branch information
guggero committed Dec 7, 2023
1 parent 88346dc commit 6361160
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 99 deletions.
8 changes: 0 additions & 8 deletions itest/addrs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ func testAddresses(t *harnessTest) {
// assets made above.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -169,10 +165,6 @@ func testMultiAddress(t *harnessTest) {
alice := t.tapd
bob := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = alice
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, bob.stop(!*noDelete))
Expand Down
4 changes: 0 additions & 4 deletions itest/collectible_split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ func testCollectibleSend(t *harnessTest) {
// serve as the node which'll receive the assets.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down
4 changes: 0 additions & 4 deletions itest/full_value_split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ func testFullValueSend(t *harnessTest) {
// serve as the node which'll receive the assets.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down
8 changes: 0 additions & 8 deletions itest/multi_asset_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ func testMintMultiAssetGroups(t *harnessTest) {
// ensure that they can be sent and received correctly.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = 4
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -325,10 +321,6 @@ func testMultiAssetGroupSend(t *harnessTest) {
// assets made above.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = groupCount
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down
32 changes: 0 additions & 32 deletions itest/psbt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ func testPsbtScriptHashLockSend(t *harnessTest) {
// serve as the node which'll receive the assets.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -170,10 +166,6 @@ func testPsbtScriptCheckSigSend(t *harnessTest) {
// serve as the node which'll receive the assets.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -315,10 +307,6 @@ func testPsbtNormalInteractiveFullValueSend(t *harnessTest) {
// serve as the node which'll receive the assets.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -366,10 +354,6 @@ func testPsbtGroupedInteractiveFullValueSend(t *harnessTest) {
// serve as the node which'll receive the assets.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -526,10 +510,6 @@ func testPsbtNormalInteractiveSplitSend(t *harnessTest) {
// serve as the node which'll receive the assets.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -577,10 +557,6 @@ func testPsbtGroupedInteractiveSplitSend(t *harnessTest) {
// serve as the node which'll receive the assets.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -735,10 +711,6 @@ func testPsbtInteractiveTapscriptSibling(t *harnessTest) {
// serve as the node which'll receive the assets.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(p *tapdHarnessParams) {
p.startupSyncNode = t.tapd
p.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -863,10 +835,6 @@ func testPsbtMultiSend(t *harnessTest) {
// serve as the node which'll receive the assets.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down
9 changes: 0 additions & 9 deletions itest/re-issuance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,8 @@ func testReIssuance(t *harnessTest) {

// Create a second node, which will have no information about previously
// minted assets or asset groups.
numTotalAssets := len(normalGroupGen) + len(collectGroupGen)
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = numTotalAssets
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -341,10 +336,6 @@ func testMintWithGroupKeyErrors(t *harnessTest) {
// minted assets or asset groups.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(collectGroupGen)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down
12 changes: 0 additions & 12 deletions itest/re-org_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ func testReOrgMint(t *harnessTest) {
// node will be used to synchronize universe state.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(assetList)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -139,10 +135,6 @@ func testReOrgSend(t *harnessTest) {
// node will be used to synchronize universe state.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(assetList)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -262,10 +254,6 @@ func testReOrgMintAndSend(t *harnessTest) {
// node will be used to synchronize universe state.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(assetList)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down
4 changes: 0 additions & 4 deletions itest/round_trip_send_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ func testRoundTripSend(t *harnessTest) {
// serve as the node which'll receive the assets.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down
18 changes: 0 additions & 18 deletions itest/send_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ func testBasicSendUnidirectional(t *harnessTest) {
// node will be used to synchronize universe state.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down Expand Up @@ -215,8 +211,6 @@ func testRestartReceiverCheckBalance(t *harnessTest) {
recvTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
params.custodianProofRetrievalDelay = &custodianProofRetrievalDelay
},
)
Expand Down Expand Up @@ -458,10 +452,6 @@ func testBasicSendPassiveAsset(t *harnessTest) {
// Set up a new node that will serve as the receiving node.
recvTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, recvTapd.stop(!*noDelete))
Expand Down Expand Up @@ -1212,10 +1202,6 @@ func testMultiInputSendNonInteractiveSingleID(t *harnessTest) {
// node. Sync the new node with the primary node.
bobTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, bobTapd.stop(!*noDelete))
Expand Down Expand Up @@ -1305,10 +1291,6 @@ func testSendMultipleCoins(t *harnessTest) {
// node will be used to synchronize universe state.
secondTapd := setupTapdHarness(
t.t, t, t.lndHarness.Bob, t.universeServer,
func(params *tapdHarnessParams) {
params.startupSyncNode = t.tapd
params.startupSyncNumAssets = len(rpcAssets)
},
)
defer func() {
require.NoError(t.t, secondTapd.stop(!*noDelete))
Expand Down

0 comments on commit 6361160

Please sign in to comment.