Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: increase tmax in flakey modularity test #3370

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

bsardo
Copy link
Collaborator

@bsardo bsardo commented Dec 19, 2023

The tmax values for the test cases in endpoints/openrtb2/auction_test.go#TestValidResponseAfterExecutingStages appear to be too small such that they're causing occasional deadline exceeded errors when attempting to retrieve bids from the mock bidders.

@@ -1579,7 +1579,7 @@ var entryPointHookUpdate = hooks.HookWrapper[hookstage.Entrypoint]{

ch := hookstage.ChangeSet[hookstage.EntrypointPayload]{}
ch.AddMutation(func(payload hookstage.EntrypointPayload) (hookstage.EntrypointPayload, error) {
body, err := jsonpatch.MergePatch(payload.Body, []byte(`{"tmax":50}`))
body, err := jsonpatch.MergePatch(payload.Body, []byte(`{"tmax":600}`))
Copy link
Collaborator Author

@bsardo bsardo Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mutation had to be increased and instead of making it 500, I made it 600 so it still changes the tmax from what is in the request and is large enough to avoid deadline exceeded errors.

@bsardo bsardo merged commit 2e7f73a into prebid:master Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants