-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution][Endpoint] Fix unhandled promise rejections in skipped tests #115354
[Security Solution][Endpoint] Fix unhandled promise rejections in skipped tests #115354
Conversation
Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for picking this up!
import { | ||
EndpointPrivileges, | ||
useEndpointPrivileges, | ||
} from '../../../../../../common/components/user_privileges/use_endpoint_privileges'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just FYI - depending on whether my PR goes in first, you might need to adjust this path here and below on line 28
@@ -42,8 +36,17 @@ let coreStart: AppContextTestRender['coreStart']; | |||
let http: typeof coreStart.http; | |||
const generator = new EndpointDocGenerator(); | |||
|
|||
// unhandled promise rejection: https://github.com/elastic/kibana/issues/112699 | |||
describe.skip('Policy trusted apps layout', () => { | |||
describe('Policy trusted apps layout', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: same here. My pending PR has a method that does this same thing called getEndpointPrivilegesInitialStateMock()
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…pped tests (elastic#115354) * Fix errors and comment code in middleware (pending to fix this) * Fix endpoint list middleware test * Fix policy TA layout test * Fix test returning missing promise
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…pped tests (#115354) (#115399) * Fix errors and comment code in middleware (pending to fix this) * Fix endpoint list middleware test * Fix policy TA layout test * Fix test returning missing promise Co-authored-by: David Sánchez <[email protected]>
Summary
Fixes some unhandled promise rejections after upgrade node version and reenable skipped tests.
For maintainers