test: make rand test stable (#15237)

This commit is contained in:
Evan Zhou
2020-03-10 11:38:24 +08:00
committed by GitHub
parent 0bd1ae7b24
commit bd685cae67

View File

@ -45,7 +45,7 @@ func (s *testMiscSuite) TestRand(c *C) {
}
}
fmt.Println(sum)
c.Assert(sum < 6, IsTrue)
c.Assert(sum < 24, IsTrue)
}
func BenchmarkFastRand(b *testing.B) {