fix: test error
This commit is contained in:
parent
9d8cd036ff
commit
e22053ce2c
@ -44,7 +44,7 @@ func Start(device io.ReadWriter, gateway, portal, broadcast netip.Addr) (*TCP, *
|
||||
for {
|
||||
n, err := device.Read(buf)
|
||||
if err != nil {
|
||||
log.Warnln("system error:%s", err.Error())
|
||||
log.Errorf("system error:%s", err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ func Test_SumNeon(t *testing.T) {
|
||||
}
|
||||
|
||||
compat := SumCompat(bytes[:size])
|
||||
neon := sumNeon(bytes[:size])
|
||||
neon := SumNeon(bytes[:size])
|
||||
|
||||
if compat != neon {
|
||||
t.Errorf("Sum of length=%d mismatched", size)
|
||||
@ -46,6 +46,6 @@ func Benchmark_SumNeon(b *testing.B) {
|
||||
b.ResetTimer()
|
||||
|
||||
for i := 0; i < b.N; i++ {
|
||||
sumNeon(bytes)
|
||||
SumNeon(bytes)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user