Skip to content

Commit f4d2f6b

Browse files
committed
The whole response from the uploadSbom function is now available.
Signed-off-by: Vilem Obratil <vobratil@redhat.com>
1 parent 5b2c2a4 commit f4d2f6b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

e2e/tests/api/features/performance-delete.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ test.describe("Performance / Deletion", { tag: "@performance" }, () => {
3939
test.beforeEach(async ({ axios }) => {
4040
logger.info("Uploading SBOMs before deletion performance tests.");
4141

42-
var uploads = await uploadSboms(axios, SBOM_DIR, SBOM_FILES);
42+
var uploadResponses = await uploadSboms(axios, SBOM_DIR, SBOM_FILES);
4343

44-
uploads.forEach((upload) => sbomIds.push(upload.id));
44+
uploadResponses.forEach((response) => sbomIds.push(response.data.id));
4545

4646
sbomIds.forEach((id) => logger.info(id));
4747

e2e/tests/api/helpers/upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function uploadSboms(
2020
});
2121

2222
const responses = await Promise.all(uploads);
23-
return responses.map((response) => response.data);
23+
return responses
2424
}
2525

2626
export async function uploadAdvisories(axios: AxiosInstance, advisoryDirPath: string, files: string[]) {

0 commit comments

Comments
 (0)