mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert the retry ahead of using the mock resolver
This commit is contained in:
parent
486eb97e87
commit
37ff87ec29
1 changed files with 3 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ var parseNodeTests = []struct {
|
||||||
input string
|
input string
|
||||||
wantError string
|
wantError string
|
||||||
wantResult *Node
|
wantResult *Node
|
||||||
|
retries uint
|
||||||
}{
|
}{
|
||||||
// Records
|
// Records
|
||||||
{
|
{
|
||||||
|
|
@ -73,6 +74,7 @@ var parseNodeTests = []struct {
|
||||||
{
|
{
|
||||||
input: "enode://1dd9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439@invalid.:3",
|
input: "enode://1dd9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439@invalid.:3",
|
||||||
wantError: `no such host`,
|
wantError: `no such host`,
|
||||||
|
retries: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: "enode://1dd9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439@127.0.0.1:foo",
|
input: "enode://1dd9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439@127.0.0.1:foo",
|
||||||
|
|
@ -183,6 +185,7 @@ func TestParseNode(t *testing.T) {
|
||||||
}
|
}
|
||||||
if !reflect.DeepEqual(n, test.wantResult) {
|
if !reflect.DeepEqual(n, test.wantResult) {
|
||||||
t.Errorf("test %q:\n result mismatch:\ngot: %#v\nwant: %#v", test.input, n, test.wantResult)
|
t.Errorf("test %q:\n result mismatch:\ngot: %#v\nwant: %#v", test.input, n, test.wantResult)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue