This commit is contained in:
Yusef Napora 2019-11-18 09:26:53 -06:00
parent 1274af3f6e
commit 295e3eca01
2 changed files with 2 additions and 3 deletions

View File

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

View File

@ -54,4 +54,3 @@ func AssertAddressesEqual(t *testing.T, exp, act []ma.Multiaddr) {
}
}
}