Unverified Commit c43be6cf authored by Boqin Qin's avatar Boqin Qin Committed by GitHub

les: remove invalid use of t.Fatal in TestHandshake (#21012)

parent 7e4d1925
......@@ -18,6 +18,7 @@ package les
import (
"crypto/rand"
"errors"
"math/big"
"reflect"
"sort"
......@@ -121,10 +122,10 @@ func TestHandshake(t *testing.T) {
var reqType uint64
err := recv.get("announceType", &reqType)
if err != nil {
t.Fatal(err)
return err
}
if reqType != announceTypeSigned {
t.Fatal("Expected announceTypeSigned")
return errors.New("Expected announceTypeSigned")
}
return nil
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment