Skip to content

Conversation

@mabaasit
Copy link
Collaborator

@mabaasit mabaasit commented Jan 16, 2025

CI run: https://parsley.mongodb.com/evergreen/10gen_compass_main_unit_tests_macos_test_patch_ea4869a6b73c34752a4ca8e4effe5d4010aab19d_6788d4bd495020000767142d_25_01_16_09_43_26/0/task?bookmarks=0,7306&shareLine=7183

Description

Checklist

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@github-actions github-actions bot added the fix label Jan 16, 2025
Comment on lines -179 to -182
await Promise.all([
store.dispatch(signIn()),
store.dispatch(cancelSignIn()),
]);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We are already attempting signin in performSignInAttempt and doing it here, triggers isAuthenticated stub and hence rejecting the promise after the test has finished with its assertions.

So I removed extra signin and also ensured that isAuthenticated is only called once.

@mabaasit mabaasit changed the title fix(atlas-service): dont signin twice in tests fix(atlas-service): dont signin twice in tests COMPASS-8837 Jan 16, 2025
@mabaasit mabaasit added the no release notes Fix or feature not for release notes label Jan 16, 2025
@mabaasit mabaasit marked this pull request as draft January 16, 2025 16:14
@mabaasit mabaasit force-pushed the atlas-sign-in-flake branch from 1a78d04 to 95d1937 Compare January 16, 2025 20:19
@mabaasit mabaasit marked this pull request as ready for review January 16, 2025 20:36
@mabaasit mabaasit merged commit 867a2ef into main Jan 17, 2025
31 checks passed
@mabaasit mabaasit deleted the atlas-sign-in-flake branch January 17, 2025 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix no release notes Fix or feature not for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants