2
0
mirror of https://github.com/soheilhy/cmux.git synced 2024-09-20 02:55:46 +08:00

Fix lint errors in cmux_test.go

This commit is contained in:
Soheil Hassas Yeganeh 2016-09-25 00:58:27 -04:00
parent 861c99e0fc
commit 3ac8d3a667

View File

@ -188,8 +188,8 @@ func runTestRPCClient(t *testing.T, addr net.Addr) {
}
const (
handleHttp1Close = 1
handleHttp1Request = 2
handleHTTP1Close = 1
handleHTTP1Request = 2
handleAnyClose = 3
handleAnyRequest = 4
)
@ -210,11 +210,11 @@ func TestTimeout(t *testing.T) {
go func() {
con, err := http1.Accept()
if err != nil {
result <- handleHttp1Close
result <- handleHTTP1Close
} else {
_, _ = con.Write([]byte("http1"))
_ = con.Close()
result <- handleHttp1Request
result <- handleHTTP1Request
}
}()
go func() {
@ -260,7 +260,7 @@ func TestTimeout(t *testing.T) {
if a := <-result; a != handleAnyRequest {
t.Fatal("testTimeout failed: any rule did not match")
}
if a := <-result; a != handleHttp1Close {
if a := <-result; a != handleHTTP1Close {
t.Fatal("testTimeout failed: no close an http rule")
}
}