Skip to content

Commit

Permalink
CBG-4101 avoid test flake (#7032)
Browse files Browse the repository at this point in the history
  • Loading branch information
torcolvin authored Jul 31, 2024
1 parent 6988c3c commit 560c65e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rest/audit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,8 @@ func TestAuditChangesFeedStart(t *testing.T) {
rt.Run(testCase.name, func(t *testing.T) {
docID := strings.ReplaceAll(testCase.name, " ", "_")
docVersion := rt.PutDoc(docID, `{"channels": "A"}`)
// wait for changes before starting one shot changes feeds
require.NoError(t, rt.WaitForPendingChanges())
output := base.AuditLogContents(t, func(t testing.TB) {
testCase.auditableCode(t, docID, docVersion)
})
Expand Down

0 comments on commit 560c65e

Please sign in to comment.