Skip to content

Commit

Permalink
debug:! add test to verify DNS failure on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Apr 16, 2024
1 parent 52ca371 commit 0212f93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node/geth_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ func TestNewGethNodeConfig(t *testing.T) {
require.Equal(t, []string{"my.domain.com"}, nc.HTTPVirtualHosts)
require.Equal(t, []string{"http://my.domain.com"}, nc.HTTPCors)
}

func TestDNSResolve(t *testing.T) {
tAddr, err := net.ResolveTCPAddr("tcp", "store-02.ac-cn-hongkong-c.shards.test.statusim.net")
require.NotEmpty(t, tAddr.IP)
require.NoError(t, err)
}

0 comments on commit 0212f93

Please sign in to comment.