Skip to content

Commit a7f93a9

Browse files
committed
use t.Context() for test context
1 parent 2eb902b commit a7f93a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

github/billing_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ func TestBillingService_GetPremiumRequestUsageReportOrg(t *testing.T) {
557557
]
558558
}`)
559559
})
560-
ctx := context.Background()
560+
ctx := t.Context()
561561
opts := &PremiumRequestUsageReportOptions{
562562
UsageReportOptions: UsageReportOptions{
563563
Year: Ptr(2025),
@@ -617,7 +617,7 @@ func TestBillingService_GetPremiumRequestUsageReportOrg_invalidOrg(t *testing.T)
617617
t.Parallel()
618618
client, _, _ := setup(t)
619619

620-
ctx := context.Background()
620+
ctx := t.Context()
621621
_, _, err := client.Billing.GetPremiumRequestUsageReportOrg(ctx, "%", nil)
622622
testURLParseError(t, err)
623623
}
@@ -655,7 +655,7 @@ func TestBillingService_GetPremiumRequestUsageReportUser(t *testing.T) {
655655
]
656656
}`)
657657
})
658-
ctx := context.Background()
658+
ctx := t.Context()
659659
opts := &PremiumRequestUsageReportOptions{
660660
UsageReportOptions: UsageReportOptions{
661661
Year: Ptr(2025),
@@ -712,7 +712,7 @@ func TestBillingService_GetPremiumRequestUsageReportUser_invalidUser(t *testing.
712712
t.Parallel()
713713
client, _, _ := setup(t)
714714

715-
ctx := context.Background()
715+
ctx := t.Context()
716716
_, _, err := client.Billing.GetPremiumRequestUsageReportUser(ctx, "%", nil)
717717
testURLParseError(t, err)
718718
}

0 commit comments

Comments
 (0)