mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-02-06 06:00:08 +08:00
go fmt
This commit is contained in:
parent
1274af3f6e
commit
295e3eca01
@ -56,7 +56,7 @@ func TestRoutingStateFromEnvelope(t *testing.T) {
|
||||
test.ExpectError(t, err, "unwrapping RoutingState from envelope should fail if peer id does not match key used to sign envelope")
|
||||
})
|
||||
|
||||
t.Run("unwrapping from signed envelope fails if envelope has wrong domain string", func (t *testing.T) {
|
||||
t.Run("unwrapping from signed envelope fails if envelope has wrong domain string", func(t *testing.T) {
|
||||
stateBytes, err := state.Marshal()
|
||||
test.AssertNilError(t, err)
|
||||
|
||||
@ -66,7 +66,7 @@ func TestRoutingStateFromEnvelope(t *testing.T) {
|
||||
test.ExpectError(t, err, "unwrapping RoutingState from envelope should fail if envelope was created with wrong domain string")
|
||||
})
|
||||
|
||||
t.Run("unwrapping from signed envelope fails if envelope has wrong payload type", func (t *testing.T) {
|
||||
t.Run("unwrapping from signed envelope fails if envelope has wrong payload type", func(t *testing.T) {
|
||||
stateBytes, err := state.Marshal()
|
||||
test.AssertNilError(t, err)
|
||||
payloadType := []byte("wrong-payload-type")
|
||||
|
@ -54,4 +54,3 @@ func AssertAddressesEqual(t *testing.T, exp, act []ma.Multiaddr) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user