This commit is contained in:
Shreyas Goenka 2024-11-29 02:03:43 +01:00
parent d14f4762e1
commit a9c53acdff
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,8 @@ func TestTelemetryLoggerFlushesEvents(t *testing.T) {
// Flush the events.
Flush(ctx, mockClient)
// Assert that the protoLogs are empty after flushing.
// Assert that the .Do method is called twice, because all logs were not
// successfully logged in the first call.
assert.Equal(t, 2, mockClient.numCalls)
}