removing hardcoded url

This commit is contained in:
Voronsky
2024-06-07 00:07:47 -04:00
parent 1a7337b489
commit 3bab899bf1
2 changed files with 6 additions and 3 deletions

View File

@@ -17,7 +17,8 @@ func TestListServers(t *testing.T) {
log.Fatalf(`No env file found`)
}
bearer_auth_token := os.Getenv("PTERO_API_KEY")
s, err := listServers(bearer_auth_token)
base_url := os.Getenv("BASE_URL")
s, err := listServers(bearer_auth_token, base_url)
if err != nil {
log.Fatalf(`ListServers() = %q, %v, want nil, error`, s, err)
}