From 3a647869b6ac5b725cc502a80b69cad3a1a81679 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 22 Feb 2017 16:00:59 -0800 Subject: [PATCH] lnwire: fix features_test.go to not reference removed .String() method --- lnwire/features_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lnwire/features_test.go b/lnwire/features_test.go index b51e3da4..4aec59d1 100644 --- a/lnwire/features_test.go +++ b/lnwire/features_test.go @@ -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)) } }