mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p/enode, p2p/discv5: fix URL parsing test for go 1.12.8
This commit is contained in:
parent
c2c4c9f1e5
commit
2630c5fedc
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ func TestParseNode(t *testing.T) {
|
|||
if err == nil {
|
||||
t.Errorf("test %q:\n got nil error, expected %#q", test.input, 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.input, err.Error(), test.wantError)
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue