aboutsummaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
Diffstat (limited to 'integrations')
-rw-r--r--integrations/testlogger.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/integrations/testlogger.go b/integrations/testlogger.go
index 624abf3f81..b2ad257a9b 100644
--- a/integrations/testlogger.go
+++ b/integrations/testlogger.go
@@ -5,6 +5,7 @@
package integrations
import (
+ "context"
"encoding/json"
"fmt"
"os"
@@ -12,8 +13,10 @@ import (
"strings"
"sync"
"testing"
+ "time"
"code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/queue"
)
var prefix string
@@ -98,6 +101,9 @@ func PrintCurrentTest(t testing.TB, skip ...int) func() {
}
writerCloser.setT(&t)
return func() {
+ if err := queue.GetManager().FlushAll(context.Background(), 20*time.Second); err != nil {
+ t.Errorf("Flushing queues failed with error %v", err)
+ }
_ = writerCloser.Close()
}
}