1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-01 17:38:36 +00:00

Add report_interval option to config

This commit is contained in:
Lennart Austenfeld 2024-07-27 16:51:45 +02:00
parent 7f5c34890e
commit 705f59f3e4
No known key found for this signature in database
GPG key ID: F412CF1B1AF0C1BE
6 changed files with 26 additions and 13 deletions

View file

@ -7,6 +7,7 @@ import (
"context"
"strings"
"testing"
"time"
runnerv1 "code.gitea.io/actions-proto-go/runner/v1"
connect_go "github.com/bufbuild/connect-go"
@ -173,7 +174,7 @@ func TestReporter_Fire(t *testing.T) {
require.NoError(t, err)
reporter := NewReporter(ctx, cancel, client, &runnerv1.Task{
Context: taskCtx,
})
}, time.Second)
defer func() {
assert.NoError(t, reporter.Close(""))
}()