mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 11:52:21 +08:00
Made routing code pass golint.
This commit is contained in:

committed by
Juan Batiz-Benet

parent
87bfdbc599
commit
a6851fa55b
@ -105,9 +105,9 @@ func TestGetFailures(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
resp := DHTMessage{
|
||||
resp := Message{
|
||||
Type: pmes.GetType(),
|
||||
Id: pmes.GetId(),
|
||||
ID: pmes.GetId(),
|
||||
Response: true,
|
||||
Success: false,
|
||||
}
|
||||
@ -140,10 +140,10 @@ func TestGetFailures(t *testing.T) {
|
||||
})
|
||||
|
||||
// Now we test this DHT's handleGetValue failure
|
||||
req := DHTMessage{
|
||||
req := Message{
|
||||
Type: PBDHTMessage_GET_VALUE,
|
||||
Key: "hello",
|
||||
Id: GenerateMessageID(),
|
||||
ID: GenerateMessageID(),
|
||||
Value: []byte{0},
|
||||
}
|
||||
fn.Chan.Incoming <- swarm.NewMessage(other, req.ToProtobuf())
|
||||
|
Reference in New Issue
Block a user