From 97e9f3c7a4be71072bff06dc94f1b8654703e145 Mon Sep 17 00:00:00 2001 From: Daniel Bruce Date: Mon, 20 Nov 2023 16:18:05 -0500 Subject: [PATCH] Add logs to make latency tests run The logs will output the time required for the latency tests. --- system-test/datastore.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/system-test/datastore.ts b/system-test/datastore.ts index fcfd1d984..25a2cc668 100644 --- a/system-test/datastore.ts +++ b/system-test/datastore.ts @@ -1931,10 +1931,8 @@ async.each( }); describe('latency tests', () => { const key = datastore.key(['Company', 'Google']); - const obj = { - url: 'www.google.com', - }; afterEach(async () => { + console.log('after running latency tests'); await datastore.delete(key); }); async function runLatencyTests(transaction: Transaction) { @@ -1943,6 +1941,7 @@ async.each( transaction.get(key), transaction.get(key), ]); + await transaction.commit(); console.timeEnd('before run'); console.timeEnd('after run'); }