Skip to content

Commit 924827f

Browse files
jshaaarongable
andauthored
Apply suggestions from code review
Co-authored-by: Aaron Gable <aaron@letsencrypt.org>
1 parent 3b7a3f3 commit 924827f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sa/sa_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2484,14 +2484,14 @@ func TestGetOrderAuthorizations(t *testing.T) {
24842484
sa, fc := initSA(t)
24852485

24862486
gvoa2 := func(orderID, acctID int64) (*sapb.Authorizations, error) {
2487-
return sa.GetValidOrderAuthorizations2(context.Background(), &sapb.GetValidOrderAuthorizationsRequest{
2487+
return sa.GetValidOrderAuthorizations2(t.Context(), &sapb.GetValidOrderAuthorizationsRequest{
24882488
Id: orderID,
24892489
AcctID: acctID,
24902490
})
24912491
}
24922492

24932493
goa := func(orderID, acctID int64) (*sapb.Authorizations, error) {
2494-
return sa.GetOrderAuthorizations(context.Background(), &sapb.GetOrderAuthorizationsRequest{
2494+
return sa.GetOrderAuthorizations(t.Context(), &sapb.GetOrderAuthorizationsRequest{
24952495
Id: orderID,
24962496
AcctID: acctID,
24972497
})
@@ -2513,7 +2513,7 @@ func TestGetOrderAuthorizations(t *testing.T) {
25132513
authzIDC := createFinalizedAuthorization(t, sa, reg.Id, identC, expires, "valid", attemptedAt)
25142514

25152515
orderExpr := fc.Now().Truncate(time.Second)
2516-
order, err := sa.NewOrderAndAuthzs(context.Background(), &sapb.NewOrderAndAuthzsRequest{
2516+
order, err := sa.NewOrderAndAuthzs(t.Context(), &sapb.NewOrderAndAuthzsRequest{
25172517
NewOrder: &sapb.NewOrderRequest{
25182518
RegistrationID: reg.Id,
25192519
Expires: timestamppb.New(orderExpr),

0 commit comments

Comments
 (0)