aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discv5/node_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'p2p/discv5/node_test.go')
-rw-r--r--p2p/discv5/node_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/discv5/node_test.go b/p2p/discv5/node_test.go
index c091ac019..e361c3d58 100644
--- a/p2p/discv5/node_test.go
+++ b/p2p/discv5/node_test.go
@@ -152,7 +152,7 @@ func TestParseNode(t *testing.T) {
if err == nil {
t.Errorf("test %q:\n got nil error, expected %#q", test.rawurl, test.wantError)
continue
- } else if err.Error() != test.wantError {
+ } else if !strings.Contains(err.Error(), test.wantError) {
t.Errorf("test %q:\n got error %#q, expected %#q", test.rawurl, err.Error(), test.wantError)
continue
}