Skip to content

test(unity): space out player file revisions by one second - #491

Merged
kirre-bylund merged 1 commit into
release/v8.2.0from
ci/player-files-revision-ordering
Sep 30, 2026
Merged

kirre-bylund merged 1 commit into
release/v8.2.0from
ci/player-files-revision-ordering

Conversation

@kirre-bylund

Copy link
Copy Markdown
Contributor

Revision timestamps are stored with second granularity, so two revisions created within the same second share an identical created_at. When the backend orders revisions by created_at the sort is a tie and the relative order of those revisions is undefined, which makes the revision ordering assertions flaky.

Wait one second between the operations that create revisions so each revision gets a distinct timestamp.

Copilot AI balanced review requested due to automatic review settings September 30, 2026 11:29
Revision timestamps are stored with second granularity, so two revisions
created within the same second share an identical created_at. When the
backend orders revisions by created_at the sort is a tie and the relative
order of those revisions is undefined, which makes the revision ordering
assertions flaky.

Wait one second between the operations that create revisions so each
revision gets a distinct timestamp.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@kirre-bylund
kirre-bylund force-pushed the ci/player-files-revision-ordering branch from 26b8863 to e7b7584 Compare September 30, 2026 11:30
@kirre-bylund
kirre-bylund merged commit 866392b into release/v8.2.0 Sep 30, 2026
7 checks passed
@kirre-bylund
kirre-bylund deleted the ci/player-files-revision-ordering branch September 30, 2026 11:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The targeted test waits address the reported flakiness without changing SDK behavior.

Review effort: Balanced
Findings: None

What changed in this PR

This PR makes player-file revision tests more reliable by separating revision creation times so the backend can order them consistently.

Changes:

  • Adds a one-second wait between revision-creating operations in five PlayMode tests.
File Description
Tests/​LootLockerTests/​PlayMode/​PlayerFilesTest.cs Spaces out revisions to avoid timestamp ties in ordering assertions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants