Skip to content

Commit d9c3962

Browse files
authored
Fix performance tests (#520)
Fix building the tests. Relates-To: OLPEDGE-2889 Signed-off-by: Oleksii Zubko <ext-oleksii.zubko@here.com>
1 parent d3d9929 commit d9c3962

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

scripts/linux/nv/gitlab_test_performance.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ yarn bootstrap
2828
npm run build
2929
echo ">>> Building SDK done... >>>"
3030

31+
(cd tests/performance/ && npx tsc)
32+
3133
# Start local server
3234
echo ">>> Local Server starting for further performance test ... >>>"
3335
node tests/utils/mocked-olp-server/server.js > /dev/null 2>/dev/null & SERVER_PID=$!

scripts/linux/wv/gitlab_test_performance_extended.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ yarn bootstrap
2828
npm run build
2929
echo ">>> Building SDK done... >>>"
3030

31+
(cd tests/performance/ && npx tsc)
32+
3133
# Start local server
3234
echo ">>> Local Server starting for further performance test ... >>>"
3335
node tests/utils/mocked-olp-server/server.js > /dev/null 2>/dev/null & SERVER_PID=$!

tests/performance/getDataMemoryTest.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,10 @@ export async function getDataMemoryTest(params: TestParams) {
5151

5252
while (endTimestamp > new Date()) {
5353
countSentRequests++;
54-
console.info(`>>> Sending request: ${countSentRequests} <<<`);
5554

5655
layerClient
5756
.getData(dataRequest.withPartitionId(`${countSentRequests}`))
58-
.then(res => {
59-
res.blob().then(data => {
60-
console.log(data);
61-
});
57+
.then(() => {
6258
countSuccessRequests++;
6359
})
6460
.catch(_ => {

tests/performance/getDataPartitionsTest.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@ export async function getPartitionsMemoryTest(params: TestParams) {
5151

5252
while (endTimestamp > new Date()) {
5353
countSentRequests++;
54-
console.info(`>>> Sending request: ${countSentRequests} <<<`);
5554

5655
layerClient
5756
.getPartitions(partitionsRequest)
5857
.then(metadata => {
59-
console.log("Metadata:\n" + JSON.stringify(metadata));
6058
countSuccessRequests++;
6159
})
6260
.catch(_ => {

0 commit comments

Comments
 (0)