mirror of https://github.com/poanetwork/quorum.git
p2p/enode, p2p/discv5: fix URL parsing test for go 1.11.13 (#810)
This commit is contained in:
parent
f8c925c14c
commit
664c2ab20a
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue