mirror of
https://github.com/go-gitea/gitea
synced 2025-09-10 10:48:28 +00:00
Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (#35418)
This commit is contained in:
@@ -62,11 +62,9 @@ func TestConnLogger(t *testing.T) {
|
||||
}
|
||||
expected := fmt.Sprintf("%s%s %s:%d:%s [%c] %s\n", prefix, dateString, event.Filename, event.Line, event.Caller, strings.ToUpper(event.Level.String())[0], event.MsgSimpleText)
|
||||
var wg sync.WaitGroup
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
wg.Go(func() {
|
||||
listenReadAndClose(t, l, expected)
|
||||
}()
|
||||
})
|
||||
logger.SendLogEvent(&event)
|
||||
wg.Wait()
|
||||
|
||||
|
Reference in New Issue
Block a user