mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-02 00:11:56 +03:00
Use CloseRead and CloseWrites
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
type ServerHandshakeTestSuite struct {
|
||||
suite.Suite
|
||||
|
||||
connMock *testlib.NetConnMock
|
||||
connMock *testlib.EssentialsConnMock
|
||||
proxyConn obfuscated2.Conn
|
||||
encryptor cipher.Stream
|
||||
decryptor cipher.Stream
|
||||
@@ -24,7 +24,7 @@ type ServerHandshakeTestSuite struct {
|
||||
|
||||
func (suite *ServerHandshakeTestSuite) SetupTest() {
|
||||
buf := &bytes.Buffer{}
|
||||
suite.connMock = &testlib.NetConnMock{}
|
||||
suite.connMock = &testlib.EssentialsConnMock{}
|
||||
|
||||
encryptor, decryptor, err := obfuscated2.ServerHandshake(buf)
|
||||
suite.NoError(err)
|
||||
|
||||
Reference in New Issue
Block a user