Merge pull request #8092 from yyforyongyu/fix-peer-unit-test

multi: fix peer unit test and disable `paralleltest`
This commit is contained in:
Oliver Gugger authored and GitHub committed 2023-10-17 10:18:27 +00:00
commit b0bb853f77
7 files changed
+38 -37

No files matched your search

+5 -5
View File
@@ -839,7 +839,7 @@ func TestTaprootReceiverHtlcSpend(t *testing.T) {
valid: false,
},
}
for i, testCase := range testCases { //nolint:paralleltest
for i, testCase := range testCases {
i := i
testCase := testCase
spendTxCopy := spendTx.Copy()
@@ -1140,7 +1140,7 @@ func TestTaprootCommitScriptToSelf(t *testing.T) {
},
}
for i, testCase := range testCases { //nolint:paralleltest
for i, testCase := range testCases {
i := i
testCase := testCase
spendTxCopy := spendTx.Copy()
@@ -1317,7 +1317,7 @@ func TestTaprootCommitScriptRemote(t *testing.T) {
},
}
for i, testCase := range testCases { //nolint:paralleltest
for i, testCase := range testCases {
i := i
testCase := testCase
spendTxCopy := spendTx.Copy()
@@ -1536,7 +1536,7 @@ func TestTaprootAnchorScript(t *testing.T) {
},
}
for i, testCase := range testCases { //nolint:paralleltest
for i, testCase := range testCases {
i := i
testCase := testCase
spendTxCopy := spendTx.Copy()
@@ -1833,7 +1833,7 @@ func TestTaprootSecondLevelHtlcScript(t *testing.T) {
},
}
for i, testCase := range testCases { //nolint:paralleltest
for i, testCase := range testCases {
i := i
testCase := testCase
spendTxCopy := spendTx.Copy()