Skip to content

Fix Null List Test - #6346

Open
Codengineer wants to merge 2 commits into
developfrom
bobd/UUM-154251-fix-testnulllist
Open

Codengineer wants to merge 2 commits into
developfrom
bobd/UUM-154251-fix-testnulllist

Conversation

@Codengineer

@Codengineer Codengineer commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

UUM-154251

Proposed change(s)

Describe the changes made in this PR.

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Fixing UUM-154251
Fixing unstable Test: TestNullList
Reenabling TestNullList
Those 2 lines were trying to access items from an empty list and are irrelevant.

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

@Codengineer
Codengineer requested a review from a team as a code owner November 20, 2026 19:03

@u-pr u-pr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Harness Review

Ship it

The change replaces approximate comparisons with equality assertions in TestNullList. I examined both changed assertions and the surrounding test against NullList’s indexer, which always returns exactly zero; no actionable issues were found.

Reviewed commit 8135696

🤖 Helpful? 👍/👎

Removing problematic lines from the test
@Codengineer

Copy link
Copy Markdown
Contributor Author

/review

@u-pr u-pr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Harness Review

Ship it

The change removes two indexer assertions while keeping TestNullList enabled and retaining its other checks. I examined the surrounding test and NullList’s implementation and discard-only usage; I found no actionable issues.

Reviewed commit 4175c67

🤖 Helpful? 👍/👎

This branch has not been deployed

No deployments
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