remove StatelessResetKey from the Config, it's now on the Transport

This commit is contained in:
Marten Seemann
2023-04-06 19:07:37 +08:00
parent 8189e75be6
commit b79b532b04
7 changed files with 7 additions and 16 deletions

View File

@@ -251,9 +251,10 @@ var _ = Describe("Transport", func() {
packetChan := make(chan packetToRead)
conn := newMockPacketConn(packetChan)
tr := Transport{
Conn: conn,
Conn: conn,
StatelessResetKey: &StatelessResetKey{1, 2, 3, 4},
}
tr.init(&Config{ConnectionIDLength: connID.Len(), StatelessResetKey: &StatelessResetKey{1, 2, 3, 4}})
tr.init(&Config{ConnectionIDLength: connID.Len()})
defer tr.Close()
phm := NewMockPacketHandlerManager(mockCtrl)
tr.init(&Config{})