Skip to content

Commit b30b2ae

Browse files
committed
Fix failing tests
1 parent 94d5560 commit b30b2ae

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

  • x-pack/plugins/security_solution

x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ describe('when on the endpoint list page', () => {
11141114
it('navigates to the Ingest Agent Details page with policy reassign', async () => {
11151115
const agentPolicyReassignLink = await renderResult.findByTestId('agentPolicyReassignLink');
11161116
expect(agentPolicyReassignLink.getAttribute('href')).toEqual(
1117-
`/app/fleet#/fleet/agents/${agentId}/activity?openReassignFlyout=true`
1117+
`/app/fleet#/agents/${agentId}/activity?openReassignFlyout=true`
11181118
);
11191119
});
11201120
});

x-pack/plugins/security_solution/server/endpoint/routes/actions/isolation.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,7 @@ export const isolationRequestHandler = function (
156156
commentLines.push(`${isolate ? 'I' : 'Uni'}solate action was sent to the following Agents:`);
157157
// lines of markdown links, inside a code block
158158

159-
commentLines.push(
160-
`${agentIDs.map((a) => `- [${a}](/app/fleet#/fleet/agents/${a})`).join('\n')}`
161-
);
159+
commentLines.push(`${agentIDs.map((a) => `- [${a}](/app/fleet#/agents/${a})`).join('\n')}`);
162160
if (req.body.comment) {
163161
commentLines.push(`\n\nWith Comment:\n> ${req.body.comment}`);
164162
}

0 commit comments

Comments
 (0)