Skip to content

Commit d535afe

Browse files
committed
Remove parse protocol tests
1 parent c37568d commit d535afe

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

control_test.go

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -57,38 +57,3 @@ func TestHostInfo_Lookup(t *testing.T) {
5757
}
5858
}
5959
}
60-
61-
func TestParseProtocol(t *testing.T) {
62-
tests := [...]struct {
63-
err error
64-
proto int
65-
}{
66-
{
67-
err: &protocolError{
68-
frame: errorFrame{
69-
code: 0x10,
70-
message: "Invalid or unsupported protocol version (5); the lowest supported version is 3 and the greatest is 4",
71-
},
72-
},
73-
proto: 4,
74-
},
75-
{
76-
err: &protocolError{
77-
frame: errorFrame{
78-
frameHeader: frameHeader{
79-
version: 0x83,
80-
},
81-
code: 0x10,
82-
message: "Invalid or unsupported protocol version: 5",
83-
},
84-
},
85-
proto: 3,
86-
},
87-
}
88-
89-
for i, test := range tests {
90-
if proto := parseProtocolFromError(test.err); proto != test.proto {
91-
t.Errorf("%d: exepcted proto %d got %d", i, test.proto, proto)
92-
}
93-
}
94-
}

0 commit comments

Comments
 (0)