Skip to content

Commit c68a7d6

Browse files
[DE-697] Fix flaky invoice events test
2 parents 0fc80bb + 1314f74 commit c68a7d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/invoice_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ func (s *InvoiceSuite) TestInvoice() {
8989
s.Equal(http.StatusCreated, void.Response.StatusCode)
9090
s.Equal(models.InvoiceStatus_VOIDED, *void.Data.Status)
9191

92+
// sometimes some events are missing
93+
time.Sleep(500 * time.Millisecond)
94+
9295
events, err := s.client.InvoicesController().ListInvoiceEvents(
9396
ctx,
9497
nil,

0 commit comments

Comments
 (0)