@@ -23,7 +23,7 @@ import (
2323 ouroboros "github.com/blinklabs-io/gouroboros"
2424 "github.com/blinklabs-io/gouroboros/protocol"
2525 "github.com/blinklabs-io/gouroboros/protocol/handshake"
26- "github.com/blinklabs-io/ouroboros-mock"
26+ ouroboros_mock "github.com/blinklabs-io/ouroboros-mock"
2727 "go.uber.org/goleak"
2828)
2929
@@ -33,35 +33,32 @@ const (
3333 mockProtocolVersionNtNV11 uint16 = 11
3434)
3535
36- var conversationEntryNtCResponse = ouroboros_mock.ConversationEntry {
37- Type : ouroboros_mock .EntryTypeOutput ,
36+ var conversationEntryNtCResponse = ouroboros_mock.ConversationEntryOutput {
3837 ProtocolId : handshake .ProtocolId ,
3938 IsResponse : true ,
40- OutputMessages : []protocol.Message {
39+ Messages : []protocol.Message {
4140 handshake .NewMsgAcceptVersion (
4241 mockProtocolVersionNtC ,
4342 mockNtCVersionData (),
4443 ),
4544 },
4645}
4746
48- var conversationEntryNtNResponse = ouroboros_mock.ConversationEntry {
49- Type : ouroboros_mock .EntryTypeOutput ,
47+ var conversationEntryNtNResponse = ouroboros_mock.ConversationEntryOutput {
5048 ProtocolId : handshake .ProtocolId ,
5149 IsResponse : true ,
52- OutputMessages : []protocol.Message {
50+ Messages : []protocol.Message {
5351 handshake .NewMsgAcceptVersion (
5452 mockProtocolVersionNtN ,
5553 mockNtNVersionData (),
5654 ),
5755 },
5856}
5957
60- var conversationEntryNtNResponseV11 = ouroboros_mock.ConversationEntry {
61- Type : ouroboros_mock .EntryTypeOutput ,
58+ var conversationEntryNtNResponseV11 = ouroboros_mock.ConversationEntryOutput {
6259 ProtocolId : handshake .ProtocolId ,
6360 IsResponse : true ,
64- OutputMessages : []protocol.Message {
61+ Messages : []protocol.Message {
6562 handshake .NewMsgAcceptVersion (
6663 mockProtocolVersionNtNV11 ,
6764 mockNtNVersionDataV11 (),
@@ -232,11 +229,10 @@ func TestClientNtCRefuseVersionMismatch(t *testing.T) {
232229 ouroboros_mock .ProtocolRoleClient ,
233230 []ouroboros_mock.ConversationEntry {
234231 ouroboros_mock .ConversationEntryHandshakeRequestGeneric ,
235- ouroboros_mock.ConversationEntry {
236- Type : ouroboros_mock .EntryTypeOutput ,
232+ ouroboros_mock.ConversationEntryOutput {
237233 ProtocolId : handshake .ProtocolId ,
238234 IsResponse : true ,
239- OutputMessages : []protocol.Message {
235+ Messages : []protocol.Message {
240236 handshake .NewMsgRefuse (
241237 []any {
242238 handshake .RefuseReasonVersionMismatch ,
@@ -267,11 +263,10 @@ func TestClientNtCRefuseDecodeError(t *testing.T) {
267263 ouroboros_mock .ProtocolRoleClient ,
268264 []ouroboros_mock.ConversationEntry {
269265 ouroboros_mock .ConversationEntryHandshakeRequestGeneric ,
270- ouroboros_mock.ConversationEntry {
271- Type : ouroboros_mock .EntryTypeOutput ,
266+ ouroboros_mock.ConversationEntryOutput {
272267 ProtocolId : handshake .ProtocolId ,
273268 IsResponse : true ,
274- OutputMessages : []protocol.Message {
269+ Messages : []protocol.Message {
275270 handshake .NewMsgRefuse (
276271 []any {
277272 handshake .RefuseReasonDecodeError ,
@@ -303,11 +298,10 @@ func TestClientNtCRefuseRefused(t *testing.T) {
303298 ouroboros_mock .ProtocolRoleClient ,
304299 []ouroboros_mock.ConversationEntry {
305300 ouroboros_mock .ConversationEntryHandshakeRequestGeneric ,
306- ouroboros_mock.ConversationEntry {
307- Type : ouroboros_mock .EntryTypeOutput ,
301+ ouroboros_mock.ConversationEntryOutput {
308302 ProtocolId : handshake .ProtocolId ,
309303 IsResponse : true ,
310- OutputMessages : []protocol.Message {
304+ Messages : []protocol.Message {
311305 handshake .NewMsgRefuse (
312306 []any {
313307 handshake .RefuseReasonRefused ,
0 commit comments