Skip to content

Commit

Permalink
Merge pull request #909 from Juniper/always-set-env-in-tests
Browse files Browse the repository at this point in the history
Always set test environment vars in tests
  • Loading branch information
chrismarget-j authored Oct 4, 2024
2 parents 236e432 + d639a8c commit 2516677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apstra/test_utils/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func GetTestClient(t testing.TB, ctx context.Context) *apstra.Client {
testClientMutex.Lock()
defer testClientMutex.Unlock()

if sharedClient == nil {
TestCfgFileToEnv(t)
TestCfgFileToEnv(t)

if sharedClient == nil {
clientCfg, err := utils.NewClientConfig("", "")
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 2516677

Please sign in to comment.