Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failed test #46

Merged
merged 1 commit into from
Nov 24, 2023
Merged

Fix failed test #46

merged 1 commit into from
Nov 24, 2023

Conversation

svor
Copy link
Contributor

@svor svor commented Nov 23, 2023

Current problem:
Run Tests command is failed:
screenshot-che-dogfooding apps che-dev x6e0 p1 openshiftapps com-2023 11 23-13_52_38

After the fix:
screenshot-che-dogfooding apps che-dev x6e0 p1 openshiftapps com-2023 11 23-13_53_29

@svor svor self-assigned this Nov 23, 2023
@svor svor requested review from dkwon17 and ibuziuk as code owners November 23, 2023 11:58
Copy link

Click here to review and test in web IDE: Contribute

assertEquals("Apple pie", foods[1].name);
assertEquals("Strawberry cake", foods[2].name);
assertEquals("Sandwich", foods[3].name);
assertEquals("Soup", foods[4].name);
Copy link
Collaborator

@dkwon17 dkwon17 Nov 23, 2023

Choose a reason for hiding this comment

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

Thank you @svor I'm not sure why the order changed causing the failure on main

Maybe instead, we can sort by name instead of id for the list endpoint?

        return Food.listAll(Sort.by("name"));

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dkwon17 makes sense, updated

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
@dkwon17 dkwon17 merged commit a3ac046 into main Nov 24, 2023
2 checks passed
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