Skip to content

Commit

Permalink
only log initial creation time once
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlaverse committed Aug 21, 2024
1 parent 59dd596 commit 22eb2c2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions internal/provider/provider_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,18 @@ func ensureVaultwardenHasUser(t *testing.T) {
}

func ensureVaultwardenConfigured(t *testing.T) {
start := time.Now()
testResourcesMu.Lock()
defer func() {
testResourcesMu.Unlock()
t.Logf("ensureVaultwardenConfigured() took %s", time.Since(start))
}()
defer testResourcesMu.Unlock()

if areTestResourcesCreated {
return
}

start := time.Now()
defer func() {
t.Logf("initial ensureVaultwardenConfigured() took %s", time.Since(start))
}()

webapiClient := webapi.NewClient(testServerURL)

userAlreadyExists := false
Expand Down

0 comments on commit 22eb2c2

Please sign in to comment.