Skip to content

Commit

Permalink
Revert "Use a more natural callback signature."
Browse files Browse the repository at this point in the history
This reverts commit 7433da4.
  • Loading branch information
scr-oath committed Nov 6, 2024
1 parent 7433da4 commit 9be4acd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions endpoints/openrtb2/auction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5993,10 +5993,11 @@ func TestRequestContextPropagates(t *testing.T) {
reqBody := validRequest(t, "site.json")
mockEntrypoint := mocks.NewEntrypoint(t)
mockEntrypoint.On("HandleEntrypointHook", mock.Anything, mock.Anything, mock.Anything).
Return(func(ctx context.Context, _ hookstage.ModuleInvocationContext, _ hookstage.EntrypointPayload) (hookstage.HookResult[hookstage.EntrypointPayload], error) {
Run(func(args mock.Arguments) {
ctx := args.Get(0).(context.Context)
assert.Equal(t, "testing", ctx.Value(testKey))
return hookstage.HookResult[hookstage.EntrypointPayload]{}, nil
})
}).
Return(hookstage.HookResult[hookstage.EntrypointPayload]{}, nil)
deps := &endpointDeps{
fakeUUIDGenerator{},
&mockExchange{},
Expand Down

0 comments on commit 9be4acd

Please sign in to comment.