Description: do not test anything that needs network access
Index: golang-github-gmazoyer-peeringdb/api_test.go
===================================================================
--- golang-github-gmazoyer-peeringdb.orig/api_test.go	2021-09-14 23:33:33.110248667 +0000
+++ golang-github-gmazoyer-peeringdb/api_test.go	2021-09-14 23:33:33.102248111 +0000
@@ -212,13 +212,3 @@
 		t.Errorf("formatURL, want '%s' got '%s'", expectedPassword, api.password)
 	}
 }
-
-func TestGetASN(t *testing.T) {
-	api := NewAPI()
-	expectedASN := 29467
-	net := api.GetASN(expectedASN)
-
-	if net.ASN != expectedASN {
-		t.Errorf("GetASN, want ASN '%d' got '%d'", expectedASN, net.ASN)
-	}
-}
Index: golang-github-gmazoyer-peeringdb/examples_test.go
===================================================================
--- golang-github-gmazoyer-peeringdb.orig/examples_test.go	2021-09-14 23:16:28.363112683 +0000
+++ golang-github-gmazoyer-peeringdb/examples_test.go	2021-09-14 23:34:21.297593736 +0000
@@ -1,62 +1,4 @@
 package peeringdb
 
-import "fmt"
-
 func Example() {
-	api := NewAPI()
-
-	// Look for the organization given a name
-	search := make(map[string]interface{})
-	search["name"] = "LuxNetwork S.A."
-
-	// Get the organization, pointer to slice returned
-	organizations, err := api.GetOrganization(search)
-
-	// If an error as occurred, print it
-	if err != nil {
-		fmt.Println(err)
-		return
-	}
-
-	// No organization found
-	if len(*organizations) < 1 {
-		fmt.Printf("No organization found with name '%s'\n", search["name"])
-		return
-	}
-
-	// Several organizations found
-	if len(*organizations) > 1 {
-		fmt.Printf("More than one organizations found with name '%s'\n",
-			search["name"])
-		return
-	}
-
-	// Get the first found organization
-	org := (*organizations)[0]
-
-	// Find if there are networks linked to the organization
-	if len(org.NetworkSet) > 0 {
-		// For each network
-		for _, networkID := range org.NetworkSet {
-			// Get the details and print it
-			network, err := api.GetNetworkByID(networkID)
-			if err != nil {
-				fmt.Println(err)
-			} else {
-				fmt.Print(network.Name)
-			}
-		}
-	}
-	// Output: LuxNetwork S.A.
-}
-
-func ExampleAPI_GetASN() {
-	api := NewAPI()
-	as29467 := api.GetASN(29467)
-
-	fmt.Printf("Name:      %s\n", as29467.Name)
-	fmt.Printf("AS number: %d\n", as29467.ASN)
-	// Output:
-	// Name:      LuxNetwork S.A.
-	// AS number: 29467
 }
