testable-utils
Version:
Utilities for Testable scripts
9 lines (8 loc) • 453 B
JavaScript
const createResults = require('./results');
(async () => {
const results = createResults(false, { execution: { id: process.env.TESTABLE_EXECUTION_ID, concurrentClients: 1 } });
const value = await results.get({ namespace: 'Testable', name: 'firstReceivedMs', key: 'p50' });
console.log(value);
await results.waitForValue({ namespace: 'Testable', name: 'firstReceivedMs', key: 'p50', value: (value - 1) });
console.log('here');
})();