Skip to content

Commit

Permalink
Just set the variable instead of asking for it from the outside
Browse files Browse the repository at this point in the history
  • Loading branch information
DRuggeri committed Sep 14, 2018
1 parent 0781be1 commit e7ba70a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions restapi/import_api_object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ func TestAccRestApiObject_importBasic(t *testing.T) {
api_server_objects := make(map[string]map[string]interface{})

svr := fakeserver.NewFakeServer(8082, api_server_objects, true, debug)
if os.Getenv("REST_API_URI") != "http://127.0.0.1:8082" {
t.Fatalf("REST_API_URI environment variable must be set to 'http://127.0.0.1:8082' but it is set to '%s'", os.Getenv("REST_API_URI"))
}
os.Setenv("REST_API_URI", "http://127.0.0.1:8082")

client, err := NewAPIClient("http://127.0.0.1:8082/", false, "", "", make(map[string]string, 0), 2, "id", make([]string, 0), false, false, debug)
if err != nil { t.Fatal(err) }
Expand Down

0 comments on commit e7ba70a

Please sign in to comment.