Skip to content

Commit 8d3994f

Browse files
committed
revert: unnecessary changes
1 parent 64796e9 commit 8d3994f

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

src/datastore/postgres-store.ts

-1
Original file line numberDiff line numberDiff line change
@@ -2974,7 +2974,6 @@ export class PgDataStore
29742974
const total = await client.query<{ count: number }>(`
29752975
SELECT block_count AS count FROM chain_tip
29762976
`);
2977-
console.log('printing total rows here: ', total.rows);
29782977
const results = await client.query<BlockQueryResult>(
29792978
`
29802979
SELECT ${BLOCK_COLUMNS}

src/tests-bns/setup.ts

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { StacksCoreRpcClient } from '../core-rpc/client';
44
// ts-unused-exports:disable-next-line
55
export default async (): Promise<void> => {
66
console.log('Jest - setup..');
7+
if (!process.env.NODE_ENV) {
8+
process.env.NODE_ENV = 'test';
9+
}
710
loadDotEnv();
811
console.log('Waiting for RPC connection to core node..');
912
await new StacksCoreRpcClient().waitForConnection(60000);

src/tests-rosetta/setup.ts

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { StacksCoreRpcClient } from '../core-rpc/client';
44
// ts-unused-exports:disable-next-line
55
export default async (): Promise<void> => {
66
console.log('Jest - setup..');
7+
if (!process.env.NODE_ENV) {
8+
process.env.NODE_ENV = 'test';
9+
}
710
loadDotEnv();
811
console.log('Waiting for RPC connection to core node..');
912
await new StacksCoreRpcClient().waitForConnection(60000);

src/tests-tokens/setup.ts

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import { loadDotEnv } from '../helpers';
22
// ts-unused-exports:disable-next-line
33
export default (): void => {
44
console.log('Jest - setup..');
5+
if (!process.env.NODE_ENV) {
6+
process.env.NODE_ENV = 'test';
7+
}
58
loadDotEnv();
69
console.log('Jest - setup done');
710
};

utils/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type TableCellValue = string | number | bigint | undefined;
2727
* @param blockHeight Specific block height at which to query balances
2828
*/
2929
async function printTopAccountBalances(count: number, blockHeight: number) {
30-
const db = await PgDataStore.connect({ skipMigrations: true, usageName: 'tests' });
30+
const db = await PgDataStore.connect({ skipMigrations: true, usageName: 'utils' });
3131

3232
const heightText = blockHeight == 0 ? 'chain tip' : `block height ${blockHeight}`;
3333
console.log(`Calculating balances for top ${count} accounts at ${heightText}...`);

0 commit comments

Comments
 (0)