summaryrefslogtreecommitdiff
path: root/internal/httpctx/httpctx_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/httpctx/httpctx_test.go')
-rw-r--r--internal/httpctx/httpctx_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/httpctx/httpctx_test.go b/internal/httpctx/httpctx_test.go
index 6cd6521..d82dc99 100644
--- a/internal/httpctx/httpctx_test.go
+++ b/internal/httpctx/httpctx_test.go
@@ -43,10 +43,10 @@ func TestWithTimeoutUnlessSet_NoDeadline(t *testing.T) {
}
}
-func TestWithTimeoutUnlessSet_NilUsesBackground(t *testing.T) {
+func TestWithTimeoutUnlessSet_TODOContext(t *testing.T) {
t.Parallel()
- ctx, cancel := WithTimeoutUnlessSet(nil, 50*time.Millisecond)
+ ctx, cancel := WithTimeoutUnlessSet(context.TODO(), 50*time.Millisecond)
defer cancel()
if err := ctx.Err(); err != nil {