forked from cerc-io/plugeth
p2p/enode, p2p/discv5: fix URL parsing test for go 1.12.8 (#19963)
This commit is contained in:
parent
260b177fe3
commit
26f538b0e5
@ -152,7 +152,7 @@ func TestParseNode(t *testing.T) {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
t.Errorf("test %q:\n got nil error, expected %#q", test.rawurl, test.wantError)
|
t.Errorf("test %q:\n got nil error, expected %#q", test.rawurl, test.wantError)
|
||||||
continue
|
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)
|
t.Errorf("test %q:\n got error %#q, expected %#q", test.rawurl, err.Error(), test.wantError)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -162,7 +162,7 @@ func TestParseNode(t *testing.T) {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
t.Errorf("test %q:\n got nil error, expected %#q", test.input, test.wantError)
|
t.Errorf("test %q:\n got nil error, expected %#q", test.input, test.wantError)
|
||||||
continue
|
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)
|
t.Errorf("test %q:\n got error %#q, expected %#q", test.input, err.Error(), test.wantError)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user