Commit b5892760 authored by tavit ohanian's avatar tavit ohanian

use p2p istead of libp2p

parent 8d961aa9
Pipeline #776 passed with stages
in 8 seconds
......@@ -23,14 +23,14 @@ func (r *simpleRecord) Domain() string {
if r.testDomain != nil {
return *r.testDomain
}
return "libp2p-testing"
return "p2p-testing"
}
func (r *simpleRecord) Codec() []byte {
if r.testCodec != nil {
return r.testCodec
}
return []byte("/libp2p/testdata")
return []byte("/p2p/testdata")
}
func (r *simpleRecord) MarshalRecord() ([]byte, error) {
......@@ -252,7 +252,7 @@ func TestEnvelopeValidateFailsForDifferentDomain(t *testing.T) {
func TestEnvelopeValidateFailsIfPayloadTypeIsAltered(t *testing.T) {
var (
rec = &simpleRecord{message: "hello world!"}
domain = "libp2p-testing"
domain = "p2p-testing"
priv, _, err = test.RandTestKeyPair(crypto.Ed25519, 256)
)
......@@ -273,7 +273,7 @@ func TestEnvelopeValidateFailsIfPayloadTypeIsAltered(t *testing.T) {
func TestEnvelopeValidateFailsIfContentsAreAltered(t *testing.T) {
var (
rec = &simpleRecord{message: "hello world!"}
domain = "libp2p-testing"
domain = "p2p-testing"
priv, _, err = test.RandTestKeyPair(crypto.Ed25519, 256)
)
......
......@@ -2,7 +2,7 @@ package record
import "testing"
var testPayloadType = []byte("/libp2p/test/record/payload-type")
var testPayloadType = []byte("/p2p/test/record/payload-type")
type testPayload struct {
unmarshalPayloadCalled bool
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment