Skip to content

Commit

Permalink
fix assert.AnyOf not passing its message to the Asserter#AnyOf method
Browse files Browse the repository at this point in the history
  • Loading branch information
adamluzsi committed Nov 18, 2024
1 parent d6fd834 commit 88b4806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assert/pkgfunc.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func Eventually[T time.Duration | int](tb testing.TB, durationOrCount T, blk fun
// or when working with a list where any element meeting a certain criteria is considered sufficient.
func AnyOf(tb testing.TB, blk func(a *A), msg ...Message) {
tb.Helper()
Must(tb).AnyOf(blk)
Must(tb).AnyOf(blk, msg...)
}

// Unique will verify if the given list has unique elements.
Expand Down

0 comments on commit 88b4806

Please sign in to comment.