Skip to content

Commit

Permalink
Get env variable directly from github actions instead of setting it up
Browse files Browse the repository at this point in the history
Signed-off-by: Karanjot Singh <drquark@duck.com>
  • Loading branch information
0xquark committed May 7, 2024
1 parent 6f59461 commit 07b4fa7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions atlan/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@ func TestEnvConfig(t *testing.T) {
apiKey := "your_api_key"
baseURL := "your_base_url"

os.Setenv("ATLAN_API_KEY", apiKey)
os.Setenv("ATLAN_BASE_URL", baseURL)

//defer os.Unsetenv("ATLAN_API_KEY")
//defer os.Unsetenv("ATLAN_BASE_URL")

os.Getenv("ATLAN_API_KEY")
os.Getenv("ATLAN_BASE_URL")

// Initialize client
err := Init()
assert.NoError(t, err)
Expand Down

0 comments on commit 07b4fa7

Please sign in to comment.