p2p/enode, p2p/discv5: fix URL parsing test for go 1.11.13 (#810)

This commit is contained in:
Nguyen Kien Trung 2019-08-27 15:17:59 -04:00 committed by Samer Falah
parent f8c925c14c
commit 664c2ab20a
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
language: go
go_import_path: github.com/ethereum/go-ethereum
go: 1.11.12
go: 1.11.x
sudo: true
branches:
only:

View File

@ -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
}

View File

@ -139,7 +139,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
}