Skip to content

Commit

Permalink
CR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
crespocarlos committed Nov 19, 2024
1 parent 86d2221 commit 0faf3b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ export default function ApiTest({ getService }: DeploymentAgnosticFtrProviderCon
children: FormattedNode[];
}

// format tree in somewhat concise format for easier testing

describe('Aggregated critical path', () => {
let apmSynthtraceEsClient: ApmSynthtraceEsClient;

// format tree in somewhat concise format for easier testing
function formatTree(nodes: HydratedNode[]): FormattedNode[] {
return sortBy(
nodes.map((node) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function ApiTest({ getService }: DeploymentAgnosticFtrProviderCon
describe('when data is loaded', () => {
let response: any;
before(async () => {
await esArchiver.load(ARCHIVER_ROUTES['8.0.0']);
await esArchiver.load(ARCHIVER_ROUTES[archiveName]);
response = await apmApiClient.readUser({
endpoint: 'GET /internal/apm/traces',
params: {
Expand All @@ -61,7 +61,7 @@ export default function ApiTest({ getService }: DeploymentAgnosticFtrProviderCon
});

after(async () => {
await esArchiver.unload(ARCHIVER_ROUTES['8.0.0']);
await esArchiver.unload(ARCHIVER_ROUTES[archiveName]);
});

it('returns the correct status code', () => {
Expand Down

0 comments on commit 0faf3b3

Please sign in to comment.