File tree 5 files changed +10
-2
lines changed
5 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2974,7 +2974,6 @@ export class PgDataStore
2974
2974
const total = await client . query < { count : number } > ( `
2975
2975
SELECT block_count AS count FROM chain_tip
2976
2976
` ) ;
2977
- console . log ( 'printing total rows here: ' , total . rows ) ;
2978
2977
const results = await client . query < BlockQueryResult > (
2979
2978
`
2980
2979
SELECT ${ BLOCK_COLUMNS }
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ import { StacksCoreRpcClient } from '../core-rpc/client';
4
4
// ts-unused-exports:disable-next-line
5
5
export default async ( ) : Promise < void > => {
6
6
console . log ( 'Jest - setup..' ) ;
7
+ if ( ! process . env . NODE_ENV ) {
8
+ process . env . NODE_ENV = 'test' ;
9
+ }
7
10
loadDotEnv ( ) ;
8
11
console . log ( 'Waiting for RPC connection to core node..' ) ;
9
12
await new StacksCoreRpcClient ( ) . waitForConnection ( 60000 ) ;
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ import { StacksCoreRpcClient } from '../core-rpc/client';
4
4
// ts-unused-exports:disable-next-line
5
5
export default async ( ) : Promise < void > => {
6
6
console . log ( 'Jest - setup..' ) ;
7
+ if ( ! process . env . NODE_ENV ) {
8
+ process . env . NODE_ENV = 'test' ;
9
+ }
7
10
loadDotEnv ( ) ;
8
11
console . log ( 'Waiting for RPC connection to core node..' ) ;
9
12
await new StacksCoreRpcClient ( ) . waitForConnection ( 60000 ) ;
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ import { loadDotEnv } from '../helpers';
2
2
// ts-unused-exports:disable-next-line
3
3
export default ( ) : void => {
4
4
console . log ( 'Jest - setup..' ) ;
5
+ if ( ! process . env . NODE_ENV ) {
6
+ process . env . NODE_ENV = 'test' ;
7
+ }
5
8
loadDotEnv ( ) ;
6
9
console . log ( 'Jest - setup done' ) ;
7
10
} ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ type TableCellValue = string | number | bigint | undefined;
27
27
* @param blockHeight Specific block height at which to query balances
28
28
*/
29
29
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 ' } ) ;
31
31
32
32
const heightText = blockHeight == 0 ? 'chain tip' : `block height ${ blockHeight } ` ;
33
33
console . log ( `Calculating balances for top ${ count } accounts at ${ heightText } ...` ) ;
You can’t perform that action at this time.
0 commit comments