1
0
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:
Chas Leichner
2014-08-16 23:48:03 -07:00
committed by Juan Batiz-Benet
parent 87bfdbc599
commit a6851fa55b
7 changed files with 39 additions and 34 deletions

View File

@ -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())