aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/message_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'p2p/message_test.go')
-rw-r--r--p2p/message_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/message_test.go b/p2p/message_test.go
index 02d70a28b..0f51f759e 100644
--- a/p2p/message_test.go
+++ b/p2p/message_test.go
@@ -42,7 +42,7 @@ func TestEncodeDecodeMsg(t *testing.T) {
if decmsg.Size != 5 {
t.Errorf("incorrect size %d, want %d", decmsg.Size, 5)
}
- data, err := decmsg.Data()
+ data, err := decmsg.Value()
if err != nil {
t.Fatalf("first payload item decode error: %v", err)
}