Skip to content

Commit

Permalink
test: reduced logging noise when waiting for service to become healthy
Browse files Browse the repository at this point in the history
  • Loading branch information
hbomb79 committed Mar 9, 2024
1 parent 4e8cf6d commit 0ed3081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/helpers/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (service *TestService) WaitForHealthy(t *testing.T, pollFrequency time.Dura
client := service.NewClient(t)
attempts := timeout.Milliseconds() / pollFrequency.Milliseconds()
for attempt := range attempts {
_, err := client.Login(ctx, gen.LoginJSONRequestBody{Username: "", Password: ""})
_, err := client.GetCurrentUser(ctx)
if err != nil {
if attempt == attempts-1 {
return err
Expand Down

0 comments on commit 0ed3081

Please sign in to comment.