chore: coding style (#3959)

This commit is contained in:
Kevin Wan
2024-03-02 22:45:24 +08:00
committed by GitHub
parent e08ba2fee8
commit 45be48a4ee
10 changed files with 23 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ import (
func TestStableRunner(t *testing.T) {
size := bufSize * 2
rand.Seed(time.Now().UnixNano())
rand.NewSource(time.Now().UnixNano())
runner := NewStableRunner(func(v int) float64 {
if v == 0 {
time.Sleep(time.Millisecond * 100)
@@ -49,7 +49,7 @@ func TestStableRunner(t *testing.T) {
}
func FuzzStableRunner(f *testing.F) {
rand.Seed(time.Now().UnixNano())
rand.NewSource(time.Now().UnixNano())
f.Add(uint64(bufSize))
f.Fuzz(func(t *testing.T, n uint64) {
runner := NewStableRunner(func(v int) float64 {