mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-27 23:46:04 +00:00
fix test break
This commit is contained in:
parent
62c896e8b8
commit
f2f1ad8d6b
@ -39,7 +39,7 @@ Accept-Language: de,en;q=0.7,en-us;q=0.3
|
|||||||
assert.String(req.Header.Get("Proxy-Authenticate")).Equals("abc")
|
assert.String(req.Header.Get("Proxy-Authenticate")).Equals("abc")
|
||||||
|
|
||||||
StripHopByHopHeaders(req.Header)
|
StripHopByHopHeaders(req.Header)
|
||||||
assert.String(req.Header.Get("Connection")).Equals("close")
|
assert.String(req.Header.Get("Connection")).IsEmpty()
|
||||||
assert.String(req.Header.Get("Foo")).Equals("")
|
assert.String(req.Header.Get("Foo")).Equals("")
|
||||||
assert.String(req.Header.Get("Bar")).Equals("")
|
assert.String(req.Header.Get("Bar")).Equals("")
|
||||||
assert.String(req.Header.Get("Proxy-Connection")).Equals("")
|
assert.String(req.Header.Get("Proxy-Connection")).Equals("")
|
||||||
|
|||||||
@ -42,3 +42,9 @@ func (subject *StringSubject) NotContains(substring string) {
|
|||||||
subject.Fail("doesn't contain", substring)
|
subject.Fail("doesn't contain", substring)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (subject *StringSubject) IsEmpty() {
|
||||||
|
if len(subject.value) > 0 {
|
||||||
|
subject.FailWithMessage("is not empty.")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user