Merge pull request #7919 from Friendseeker/sbt-7918

[1.x] Fix Flaky Test: `sbt.TagsTest`
This commit is contained in:
adpi2 2024-11-27 10:26:15 +01:00 committed by GitHub
commit aa76149129
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ object TagsTest extends Properties("Tags") {
def tagMap: Gen[TagMap] = for (ts <- listOf(tagAndFrequency)) yield ts.toMap
def tagAndFrequency: Gen[(Tag, Int)] =
for (t <- tag; count <- Arbitrary.arbitrary[Int]) yield (t, count)
for (t <- tag; count <- Gen.choose(0, Int.MaxValue)) yield (t, count)
def tag: Gen[Tag] = for (s <- Gen.alphaStr if !s.isEmpty) yield Tag(s)
def size: Gen[Size] =
for (i <- Arbitrary.arbitrary[Int] if i != Int.MinValue) yield Size(math.abs(i))