loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix flakey test in logger test (#24883)

Fix #24882

The goroutines are all asynchronized. So it needs a little "sleep" to
make sure the writer's goroutine has been paused before sending messages
to it.

Co-authored-by: Giteabot <teabot@gitea.io>

authored by

wxiaoguang
Giteabot
and committed by
GitHub
910bf315 a9d41734

+1
+1
modules/log/logger_test.go
··· 94 94 logger.AddWriters(w1) 95 95 96 96 GetManager().PauseAll() 97 + time.Sleep(50 * time.Millisecond) 97 98 98 99 logger.Info("info-level") 99 100 time.Sleep(100 * time.Millisecond)