1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-05 16:55:27 -05:00

rename acksegment

This commit is contained in:
v2ray
2016-07-02 22:17:41 +02:00
parent 32da784549
commit 3ad83da7cb
4 changed files with 10 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ func TestDataSegment(t *testing.T) {
func TestACKSegment(t *testing.T) {
assert := assert.On(t)
seg := &ACKSegment{
seg := &AckSegment{
Conv: 1,
ReceivingWindow: 2,
ReceivingNext: 3,
@@ -59,7 +59,7 @@ func TestACKSegment(t *testing.T) {
assert.Int(len(bytes)).Equals(nBytes)
iseg, _ := ReadSegment(bytes)
seg2 := iseg.(*ACKSegment)
seg2 := iseg.(*AckSegment)
assert.Uint16(seg2.Conv).Equals(seg.Conv)
assert.Uint32(seg2.ReceivingWindow).Equals(seg.ReceivingWindow)
assert.Uint32(seg2.ReceivingNext).Equals(seg.ReceivingNext)