File tree Expand file tree Collapse file tree 5 files changed +10
-2
lines changed Expand file tree Collapse file tree 5 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -3028,7 +3028,6 @@ export class PgDataStore
3028
3028
const total = await client . query < { count : number } > ( `
3029
3029
SELECT block_count AS count FROM chain_tip
3030
3030
` ) ;
3031
- console . log ( 'printing total rows here: ' , total . rows ) ;
3032
3031
const results = await client . query < BlockQueryResult > (
3033
3032
`
3034
3033
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