Skip to content

fix(fvt): simplify retry using testify's EventuallyWithT#3324

Merged
dnwe merged 1 commit intomainfrom
dnwe/better-fvt
Oct 2, 2025
Merged

fix(fvt): simplify retry using testify's EventuallyWithT#3324
dnwe merged 1 commit intomainfrom
dnwe/better-fvt

Conversation

@dnwe
Copy link
Copy Markdown
Collaborator

@dnwe dnwe commented Oct 2, 2025

Experiment with using testify to make this assertion block cleaner and more reliable. Also allow up to 10 seconds wait time.

Experiment with using testify to make this assertion block cleaner and
more reliable. Also allow up to 10 seconds wait time.

Signed-off-by: Dominic Evans <[email protected]>
@dnwe dnwe merged commit bd9f3c7 into main Oct 2, 2025
16 checks passed
@dnwe dnwe deleted the dnwe/better-fvt branch October 2, 2025 09:15
@dnwe dnwe added the internal label Oct 3, 2025
Comment on lines +74 to +76
require.NoError(t, err)
require.NotEmpty(t, quotas, "Expected not empty quotas for default user")
require.Len(t, quotas, 1, "Expected one quota entry for default user")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😬 if these are beign called from within a goroutine, that technically violates a precondition of testing.T.FailNow:

FailNow must be called from the goroutine running the test or benchmark function, not from other goroutines created during the test. Calling FailNow does not stop those other goroutines.
https://pkg.go.dev/[email protected]#T.FailNow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants