|
|
@@ -8,6 +8,7 @@ import (
|
|
8
|
8
|
"testing"
|
|
9
|
9
|
|
|
10
|
10
|
"github.com/9seconds/mtg/v2/mtglib"
|
|
|
11
|
+ "github.com/9seconds/mtg/v2/mtglib/internal/doppel"
|
|
11
|
12
|
"github.com/9seconds/mtg/v2/mtglib/internal/tls"
|
|
12
|
13
|
"github.com/9seconds/mtg/v2/mtglib/internal/tls/fake"
|
|
13
|
14
|
"github.com/stretchr/testify/suite"
|
|
|
@@ -58,7 +59,7 @@ func (suite *SendServerHelloTestSuite) TestRecordStructure() {
|
|
58
|
59
|
recordType, length, err := tls.ReadRecord(suite.buf, &rec)
|
|
59
|
60
|
suite.NoError(err)
|
|
60
|
61
|
suite.Equal(byte(tls.TypeApplicationData), recordType)
|
|
61
|
|
- suite.Equal(int64(1369), length)
|
|
|
62
|
+ suite.Greater(length, int64(doppel.TLSRecordSizeStart))
|
|
62
|
63
|
|
|
63
|
64
|
suite.Empty(suite.buf.Bytes())
|
|
64
|
65
|
}
|