mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
fix byte assertion
This commit is contained in:
parent
8b1bedc607
commit
d2538839af
@ -26,6 +26,7 @@ type BytesSubject struct {
|
||||
func (subject *BytesSubject) Equals(expectation []byte) {
|
||||
if len(subject.value) != len(expectation) {
|
||||
subject.FailWithMessage(fmt.Sprint("Bytes arrays have differen size: expected ", len(expectation), ", actual ", len(subject.value)))
|
||||
return
|
||||
}
|
||||
for idx, b := range expectation {
|
||||
if subject.value[idx] != b {
|
||||
|
Loading…
Reference in New Issue
Block a user