Revert the retry ahead of using the mock resolver

This commit is contained in:
Guillaume Ballet 2019-11-07 16:14:20 +01:00
parent 486eb97e87
commit 37ff87ec29

View file

@ -41,6 +41,7 @@ var parseNodeTests = []struct {
input string
wantError string
wantResult *Node
retries uint
}{
// Records
{
@ -73,6 +74,7 @@ var parseNodeTests = []struct {
{
input: "enode://1dd9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439@invalid.:3",
wantError: `no such host`,
retries: 2,
},
{
input: "enode://1dd9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439@127.0.0.1:foo",
@ -183,6 +185,7 @@ func TestParseNode(t *testing.T) {
}
if !reflect.DeepEqual(n, test.wantResult) {
t.Errorf("test %q:\n result mismatch:\ngot: %#v\nwant: %#v", test.input, n, test.wantResult)
continue
}
}
}