mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-19 20:15:18 +02:00
channeldb: fix data race in TestSerializeHTLCEntries
This commit is contained in:
@@ -211,9 +211,10 @@ func TestSerializeHTLCEntries(t *testing.T) {
|
||||
func TestSerializeRevocationLog(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
// Copy the testRevocationLog.
|
||||
// Copy the testRevocationLog and testHTLCEntry.
|
||||
rl := testRevocationLog
|
||||
rl.HTLCEntries = []*HTLCEntry{&testHTLCEntry}
|
||||
htlc := testHTLCEntry
|
||||
rl.HTLCEntries = []*HTLCEntry{&htlc}
|
||||
|
||||
// Write the tlv stream.
|
||||
buf := bytes.NewBuffer([]byte{})
|
||||
|
Reference in New Issue
Block a user