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(server): flaky library e2e tests #16174

Merged
merged 1 commit into from
Feb 17, 2025
Merged

fix(server): flaky library e2e tests #16174

merged 1 commit into from
Feb 17, 2025

Conversation

etnoy
Copy link
Contributor

@etnoy etnoy commented Feb 17, 2025

  • fix flaky library e2e tests by ensuring we wait for correct queues
  • refactor library e2e test queue waiting

@etnoy etnoy force-pushed the fix/flaky-library-e2e branch from 7f0a5d3 to d716e0d Compare February 17, 2025 22:53
@etnoy etnoy marked this pull request as ready for review February 17, 2025 22:57
@@ -553,6 +554,16 @@ export const utils = {
await immichCli(['login', app, `${key.secret}`]);
return key.secret;
},

scan: async (accessToken: string, id: string, wait = false) => {
Copy link
Member

Choose a reason for hiding this comment

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

The reason why we had the scan method in the library spec file itself is because no other test needs that functionality. It's probably fine either way though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I debated back and forth on this and eventually put it in the utils because I see it being used in other e2e tests soon :)

@jrasm91 jrasm91 merged commit bfdd6ea into main Feb 17, 2025
38 checks passed
@jrasm91 jrasm91 deleted the fix/flaky-library-e2e branch February 17, 2025 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants