aboutsummaryrefslogtreecommitdiffstats
path: root/tests/e2e/utils_e2e_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/e2e/utils_e2e_test.go')
-rw-r--r--tests/e2e/utils_e2e_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/e2e/utils_e2e_test.go b/tests/e2e/utils_e2e_test.go
index efb4a6ba88..5ba05f3453 100644
--- a/tests/e2e/utils_e2e_test.go
+++ b/tests/e2e/utils_e2e_test.go
@@ -38,7 +38,7 @@ func onGiteaRunTB(t testing.TB, callback func(testing.TB, *url.URL), prepare ...
u.Host = listener.Addr().String()
defer func() {
- ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
+ ctx, cancel := context.WithTimeout(t.Context(), 2*time.Minute)
s.Shutdown(ctx)
cancel()
}()