xddxdd / bird-lg-go

BIRD looking glass in Go, for better maintainability, easier deployment & smaller memory footprint
GNU General Public License v3.0
141 stars 27 forks source link

Whois Test failling if network not available #46

Closed Tchekda closed 2 years ago

Tchekda commented 2 years ago

Hi, While building the package in a sandbox without internet connection, I encountered this error in the tests :

whois_test.go:12: Whois AS6939 failed, got dial tcp: lookup whois.arin.net on [::1]:53: read udp [::1]:40395->[::1]:53: read: connection refused

Is it possible to modify the test to bypass it if network is not reachable during the test phase ?

xddxdd commented 2 years ago

Hi, Thanks for your report! Now tests requiring network access are skipped when it is unavailable.

Tchekda commented 2 years ago

Thank you so much