Speculative deflake for assessments_controller_test #45638
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This has failed a few times recently in the DTT.
Example log:
It's a bit difficult to read but the only difference is the timestamp. The expected timestamp is one second later than the actual timestamp. I can repro this locally by sleeping for half a second before creating the sublevel user levels (line 237 in this PR).
Looking at the code, timestamp in the response is supposed to be the level group's timestamp, not the sublevel's. Likely, assigning the sublevels to
user_level
was a mistake that just went unnoticed until recently. I renamed that variable to be more clear as well.This is a new area of the codebase for me so let me know if I misunderstood anything!
PR Checklist: