mirror of https://github.com/sbt/sbt.git
Merge pull request #7919 from Friendseeker/sbt-7918
[1.x] Fix Flaky Test: `sbt.TagsTest`
This commit is contained in:
commit
aa76149129
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue