lnwire: fix features_test.go to not reference removed .String() method

This commit is contained in:
Olaoluwa Osuntokun 2017-02-22 16:00:59 -08:00
parent 3e14c6ee9b
commit 3a647869b6
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -4,6 +4,8 @@ import (
"bytes"
"reflect"
"testing"
"github.com/davecgh/go-spew/spew"
)
// TestFeaturesRemoteRequireError checks that we throw an error if remote peer
@ -19,7 +21,7 @@ func TestFeaturesRemoteRequireError(t *testing.T) {
})
remoteFeatures := NewFeatureVector([]Feature{
{first, OptionalFlag},
{first, OptionalFlag},
{second, RequiredFlag},
})
@ -37,7 +39,7 @@ func TestFeaturesLocalRequireError(t *testing.T) {
)
localFeatures := NewFeatureVector([]Feature{
{first, OptionalFlag},
{first, OptionalFlag},
{second, RequiredFlag},
})
@ -112,6 +114,6 @@ func TestDecodeEncodeFeaturesVector(t *testing.T) {
// Assert equality of the two instances.
if !reflect.DeepEqual(f.flags, nf.flags) {
t.Fatalf("encode/decode feature vector don't match %v vs "+
"%v", f.String(), nf.String())
"%v", spew.Sdump(f), spew.Sdump(nf))
}
}