mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 22:59:58 -07:00
global: snapshot
This commit is contained in:
@@ -65,16 +65,9 @@ async function testAllEndpoints() {
|
||||
}
|
||||
try {
|
||||
const endpoint = metric.by[idxName];
|
||||
const res = await endpoint.last(1);
|
||||
const count = res.data.length;
|
||||
if (count !== 1) {
|
||||
console.log(
|
||||
`FAIL: ${fullPath} -> expected 1, got ${count}`,
|
||||
);
|
||||
return;
|
||||
}
|
||||
await endpoint.last(0);
|
||||
success++;
|
||||
console.log(`OK: ${fullPath} -> ${count} items`);
|
||||
console.log(`OK: ${fullPath}`);
|
||||
} catch (e) {
|
||||
console.log(
|
||||
`FAIL: ${fullPath} -> ${e instanceof Error ? e.message : e}`,
|
||||
|
||||
Reference in New Issue
Block a user