Skip to content

452 fix flaky test#453

Merged
ChengShi-1 merged 2 commits into
developfrom
452-fix-flaky-test
Jun 4, 2026
Merged

452 fix flaky test#453
ChengShi-1 merged 2 commits into
developfrom
452-fix-flaky-test

Conversation

@ekraffmiller
Copy link
Copy Markdown
Contributor

@ekraffmiller ekraffmiller commented Jun 3, 2026

What this PR does / why we need it:

Updates GetDatasetAvailableDatasetTypes so it doesn't fail if there is an additional datasetType returned due to a concurrent test.

Which issue(s) this PR closes:

@ekraffmiller ekraffmiller marked this pull request as ready for review June 3, 2026 18:59
Copilot AI review requested due to automatic review settings June 3, 2026 18:59
@ekraffmiller ekraffmiller moved this to Ready for Review ⏩ in IQSS Dataverse Project Jun 3, 2026
@ekraffmiller ekraffmiller added the GREI Re-arch GREI re-architecture-related label Jun 3, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a flaky functional test by making GetDatasetAvailableDatasetTypes.test.ts tolerant of additional dataset types that may be present when tests run concurrently (e.g., interference from AddDatasetType.test.ts).

Changes:

  • Replaces a strict full-array equality assertion with a presence-based assertion for the default "dataset" type.
  • Refactors the expected value from an array (expectedDatasetTypes) to a single object (expectedDatasetType) to match the new assertion style.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cmbz cmbz added the FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) label Jun 3, 2026
Copy link
Copy Markdown
Contributor

@ChengShi-1 ChengShi-1 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. looks good

@github-project-automation github-project-automation Bot moved this from Ready for Review ⏩ to Ready for QA ⏩ in IQSS Dataverse Project Jun 4, 2026
@ChengShi-1 ChengShi-1 merged commit dc2cd4e into develop Jun 4, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from Ready for QA ⏩ to Merged 🚀 in IQSS Dataverse Project Jun 4, 2026
@ChengShi-1 ChengShi-1 added the Size: 0.5 A percentage of a sprint. 0.35 hours label Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) GREI Re-arch GREI re-architecture-related Size: 0.5 A percentage of a sprint. 0.35 hours

Projects

Status: Merged 🚀

Development

Successfully merging this pull request may close these issues.

fix flaky test of Available Dataset Types

4 participants