Skip to content

Commit

Permalink
Add logs to make latency tests run
Browse files Browse the repository at this point in the history
The logs will output the time required for the latency tests.
  • Loading branch information
danieljbruce committed Nov 20, 2023
1 parent bc9eca6 commit 97e9f3c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions system-test/datastore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -1943,6 +1941,7 @@ async.each(
transaction.get(key),
transaction.get(key),
]);
await transaction.commit();
console.timeEnd('before run');
console.timeEnd('after run');
}
Expand Down

0 comments on commit 97e9f3c

Please sign in to comment.