Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions certgen/certgen_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2013-2015 The btcsuite developers
// Copyright (c) 2015 The Decred developers
// Copyright (c) 2015-2026 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand Down Expand Up @@ -38,7 +38,7 @@ func TestNewTLSCertPair(t *testing.T) {

// Ensure the PEM-encoded key that is returned can be decoded.
pemKey, _ := pem.Decode(key)
if pemCert == nil {
if pemKey == nil {
t.Fatalf("pem.Decode was unable to decode the key")
}

Expand Down
7 changes: 2 additions & 5 deletions internal/blockchain/utxocache_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022 The Decred developers
// Copyright (c) 2022-2026 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand Down Expand Up @@ -1255,10 +1255,7 @@ func TestMaybeFlush(t *testing.T) {
backendEntries[outpoint] = entry
}
}
if err != nil {
t.Fatalf("%q: unexpected error fetching entries from test "+
"backend: %v", test.name, err)
}

if !reflect.DeepEqual(backendEntries, test.wantBackendEntries) {
t.Fatalf("%q: mismatched backend entries:\nwant: %+v\n got: %+v\n",
test.name, test.wantBackendEntries, backendEntries)
Expand Down
5 changes: 1 addition & 4 deletions wire/msgcfilter_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2020 The Decred developers
// Copyright (c) 2019-2026 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand Down Expand Up @@ -65,9 +65,6 @@ func TestCFilter(t *testing.T) {
// Ensure encoding with max CF data per message returns no error.
data = make([]byte, MaxCFilterDataSize)
msg = NewMsgCFilter(blockHash, GCSFilterExtended, data)
if err != nil {
t.Fatalf("NewMsgCFilter: %v", err)
}
var buf bytes.Buffer
err = msg.BtcEncode(&buf, pver)
if err != nil {
Expand Down