Skip to content

Commit

Permalink
Fix setup node test
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Aug 20, 2019
1 parent 6009d28 commit e437a96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/setup/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions pkg/setup/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e437a96

Please sign in to comment.