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

pull/21015/head
Boqin Qin 5 years ago committed by GitHub
parent 7e4d1925f0
commit c43be6cf87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      les/peer_test.go

@ -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
})

Loading…
Cancel
Save