Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some doctests for Sockets #27301

Merged
merged 2 commits into from
May 30, 2018
Merged

Some doctests for Sockets #27301

merged 2 commits into from
May 30, 2018

Conversation

kshyatt
Copy link
Contributor

@kshyatt kshyatt commented May 29, 2018

I wasn't sure about the local machine's IP address being the same for the buildbots or CI so that's why it's julia-repl.

@kshyatt kshyatt added the domain:docs This change adds or pertains to documentation label May 29, 2018
```jldoctest
julia> getalladdrinfo("google.com")
2-element Array{IPAddr,1}:
ip"172.217.6.174"
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

google has a lot of IP addresses. dig / host / nslookup seem to bounce between at least 2 or 3 for me over a a short time window. Perhaps a subdomain (like ns1.google.com) or a smaller site / one that we control might be a reliable enough choice?

julia> getalladdrinfo("julialang.org")
8-element Array{Sockets.IPAddr,1}:
 ip"151.101.194.49"    
 ip"151.101.130.49"    
 ip"151.101.66.49"     
 ip"151.101.2.49"      
 ip"2a04:4e42::561"    
 ip"2a04:4e42:400::561"
 ip"2a04:4e42:600::561"
 ip"2a04:4e42:200::561"

@fredrikekre
Copy link
Member

Unfortunate that this makes the doctesting require internet access IMO (or do we have doctests that require that already? I don't think so). Perhaps better make them all julia-repl?

@kshyatt
Copy link
Contributor Author

kshyatt commented May 29, 2018

Yeah julia-repl might be a better choice...

@kshyatt
Copy link
Contributor Author

kshyatt commented May 30, 2018

Is this ok to go?

@fredrikekre fredrikekre merged commit 45836fe into master May 30, 2018
@fredrikekre fredrikekre deleted the ksh/sockdoc branch May 30, 2018 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants