refactor: optimize fx (#1404)
* refactor: optimize fx * chore: add more comments * ci: make test robust
This commit is contained in:
@@ -567,5 +567,5 @@ func runCheckedTest(t *testing.T, fn func(t *testing.T)) {
|
||||
fn(t)
|
||||
// let scheduler schedule first
|
||||
time.Sleep(time.Millisecond)
|
||||
assert.Equal(t, goroutines, runtime.NumGoroutine())
|
||||
assert.True(t, runtime.NumGoroutine() <= goroutines)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user