Skip to content

Commit 37ff87e

Browse files
committed
Revert the retry ahead of using the mock resolver
1 parent 486eb97 commit 37ff87e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

p2p/enode/urlv4_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ var parseNodeTests = []struct {
4141
input string
4242
wantError string
4343
wantResult *Node
44+
retries uint
4445
}{
4546
// Records
4647
{
@@ -73,6 +74,7 @@ var parseNodeTests = []struct {
7374
{
7475
input: "enode://1dd9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439@invalid.:3",
7576
wantError: `no such host`,
77+
retries: 2,
7678
},
7779
{
7880
input: "enode://1dd9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439@127.0.0.1:foo",
@@ -183,6 +185,7 @@ func TestParseNode(t *testing.T) {
183185
}
184186
if !reflect.DeepEqual(n, test.wantResult) {
185187
t.Errorf("test %q:\n result mismatch:\ngot: %#v\nwant: %#v", test.input, n, test.wantResult)
188+
continue
186189
}
187190
}
188191
}

0 commit comments

Comments
 (0)