mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
adopt t.Context() now that we're on go1.24; remove per-test explicit timeout
This commit is contained in:
parent
dded18c94d
commit
5a569d4ed1
1 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@ func TestRunnerCacheConfiguration(t *testing.T) {
|
|||
}
|
||||
|
||||
t.Run("Cache accessible", func(t *testing.T) {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
defer cancel()
|
||||
|
||||
// Step 1: Populate shared cache with push workflow
|
||||
|
@ -236,7 +236,7 @@ jobs:
|
|||
})
|
||||
|
||||
t.Run("PR cache pollution prevented", func(t *testing.T) {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
defer cancel()
|
||||
|
||||
// Step 1: Populate shared cache with push workflow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue