Skip to content

Commit

Permalink
Merge pull request #272 from bkabrda/fix-base-url-intg-test
Browse files Browse the repository at this point in the history
Fix integration test for client base url
  • Loading branch information
Slavek Kabrda authored Sep 16, 2019
2 parents 889e001 + b99816c commit 4bdaeb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ func TestValidAuth(t *testing.T) {
}

func TestBaseUrl(t *testing.T) {
t.Run("Base url defaults to https://app.datadoghq.com", func(t *testing.T) {
t.Run("Base url defaults to https://api.datadoghq.com", func(t *testing.T) {
assert.Empty(t, os.Getenv("DATADOG_HOST"))

c := datadog.NewClient("abc", "def")
assert.Equal(t, "https://app.datadoghq.com", c.GetBaseUrl())
assert.Equal(t, "https://api.datadoghq.com", c.GetBaseUrl())
})

t.Run("Base url defaults DATADOG_HOST environment variable if set", func(t *testing.T) {
Expand Down

0 comments on commit 4bdaeb0

Please sign in to comment.