Skip to content

Commit

Permalink
test(metrics-operator): wait for go routine to be finished before doi…
Browse files Browse the repository at this point in the history
…ng assertions (#1508)

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
  • Loading branch information
bacherfl committed Jun 1, 2023
1 parent b66ad6f commit 8533c5e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,8 @@ func TestGetDQLTimeout(t *testing.T) {
}, 5*time.Second, 100*time.Millisecond)

mockClock.Add(retryFetchInterval * (maxRetries + 1))

require.Len(t, mockClient.DoCalls(), maxRetries+1)

wg.Wait()
require.Len(t, mockClient.DoCalls(), maxRetries+1)
}

func TestGetDQLCannotPostQuery(t *testing.T) {
Expand Down

0 comments on commit 8533c5e

Please sign in to comment.