Skip to content
Permalink
Browse files
Fixed geoip tests to look for installed tor-geoip
  • Loading branch information
cohosh committed Mar 21, 2019
1 parent facd686 commit fbcb980dd5e5b42dd80c2e0a8b3501cd17fa34a2
Showing with 2 additions and 2 deletions.
  1. +2 −2 broker/snowflake-broker_test.go
@@ -272,10 +272,10 @@ func TestSnowflakeHeap(t *testing.T) {
func TestGeoip(t *testing.T) {
Convey("Geoip", t, func() {
tv4 := new(GeoIPv4Table)
err := GeoIPLoadFile(tv4, "./geoip")
err := GeoIPLoadFile(tv4, "/usr/share/tor/geoip")
So(err, ShouldEqual, nil)
tv6 := new(GeoIPv6Table)
err = GeoIPLoadFile(tv6, "./geoip6")
err = GeoIPLoadFile(tv6, "/usr/share/tor/geoip6")
So(err, ShouldEqual, nil)

So(GetCountryByAddr(tv4, "129.97.208.23"), ShouldEqual, "CA") //University of Waterloo

0 comments on commit fbcb980

Please sign in to comment.