Skip to content

Commit 48c8e05

Browse files
committed
revert: unnecessary changes
1 parent f5854b7 commit 48c8e05

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

src/datastore/postgres-store.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3028,7 +3028,6 @@ export class PgDataStore
30283028
const total = await client.query<{ count: number }>(`
30293029
SELECT block_count AS count FROM chain_tip
30303030
`);
3031-
console.log('printing total rows here: ', total.rows);
30323031
const results = await client.query<BlockQueryResult>(
30333032
`
30343033
SELECT ${BLOCK_COLUMNS}

src/tests-bns/setup.ts

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)