Skip to content

Commit

Permalink
sort compared list of attributes for test stability (#27391)
Browse files Browse the repository at this point in the history
  • Loading branch information
hashishaw committed Jun 7, 2024
1 parent 3fef0fa commit 58c678e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/tests/acceptance/open-api-path-help-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ function secretEngineHelper(test, secretEngine) {
const expected = engineData[modelName];
// Expected values should be updated to match "actual" (result)
assert.deepEqual(
Object.keys(result),
Object.keys(expected),
Object.keys(result).sort(),
Object.keys(expected).sort(),
`getProps returns expected attributes for ${modelName}`
);
Object.keys(expected).forEach((attrName) => {
Expand All @@ -103,8 +103,8 @@ function authEngineHelper(test, authBackend) {
const result = await this.pathHelp.getProps(helpUrl, this.mount);
const expected = authData[itemName];
assert.deepEqual(
Object.keys(result),
Object.keys(expected),
Object.keys(result).sort(),
Object.keys(expected).sort(),
`getProps returns expected attributes for ${itemName}`
);
Object.keys(expected).forEach((attrName) => {
Expand Down

0 comments on commit 58c678e

Please sign in to comment.