Skip to content

Commit

Permalink
Revert the retry ahead of using the mock resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Nov 7, 2019
1 parent 486eb97 commit 37ff87e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions p2p/enode/urlv4_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var parseNodeTests = []struct {
input string
wantError string
wantResult *Node
retries uint
}{
// Records
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit 37ff87e

Please sign in to comment.