Skip to content

Commit c43be6c

Browse files
authored
les: remove invalid use of t.Fatal in TestHandshake (#21012)
1 parent 7e4d192 commit c43be6c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎les/peer_test.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package les
1818

1919
import (
2020
"crypto/rand"
21+
"errors"
2122
"math/big"
2223
"reflect"
2324
"sort"
@@ -121,10 +122,10 @@ func TestHandshake(t *testing.T) {
121122
var reqType uint64
122123
err := recv.get("announceType", &reqType)
123124
if err != nil {
124-
t.Fatal(err)
125+
return err
125126
}
126127
if reqType != announceTypeSigned {
127-
t.Fatal("Expected announceTypeSigned")
128+
return errors.New("Expected announceTypeSigned")
128129
}
129130
return nil
130131
})

0 commit comments

Comments
 (0)