Skip to content

Commit

Permalink
gctuner: fix goleak in the memoryLimitTuner.tuning
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Feb 16, 2023
1 parent 3b278c2 commit 10e5252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/gctuner/memory_limit_tuner.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var memoryGoroutineCntInTest = *atomicutil.NewInt64(0)
func WaitMemoryLimitTunerExitInTest() {
if intest.InTest {
for memoryGoroutineCntInTest.Load() > 0 {
time.Sleep(time.Millisecond)
time.Sleep(100 * time.Millisecond)
}
}
}
Expand Down

0 comments on commit 10e5252

Please sign in to comment.