From e437a96588dd1aab0882e079d30dc289f68a6b6a Mon Sep 17 00:00:00 2001 From: Sir Darkrengarius Date: Tue, 20 Aug 2019 11:09:22 +0300 Subject: [PATCH] Fix setup node test --- pkg/setup/node_test.go | 4 ++-- pkg/setup/protocol.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/setup/node_test.go b/pkg/setup/node_test.go index b9070882ce..ba9fcf64c8 100644 --- a/pkg/setup/node_test.go +++ b/pkg/setup/node_test.go @@ -172,9 +172,9 @@ func TestNode(t *testing.T) { pt, _, err := proto.ReadPacket() require.NoError(t, err) - require.Equal(t, PacketRequestRegistrationID, pt) + require.Equal(t, PacketRequestRouteID, pt) - fmt.Printf("client %v:%v got PacketRequestRegistrationID\n", client, clients[client].Addr) + fmt.Printf("client %v:%v got PacketRequestRouteID\n", client, clients[client].Addr) routeID := atomic.AddUint32(&nextRouteID, 1) diff --git a/pkg/setup/protocol.go b/pkg/setup/protocol.go index d7fe14755a..3eb0156f04 100644 --- a/pkg/setup/protocol.go +++ b/pkg/setup/protocol.go @@ -33,8 +33,8 @@ func (sp PacketType) String() string { return "Success" case RespFailure: return "Failure" - case PacketRequestRegistrationID: - return "RequestRegistrationID" + case PacketRequestRouteID: + return "RequestRouteID" } return fmt.Sprintf("Unknown(%d)", sp) }