@@ -15,9 +15,10 @@ declare module 'vitest' {
1515}
1616
1717const SUI_TOOLS_TAG =
18- process . env . SUI_TOOLS_TAG || process . arch === 'arm64'
19- ? '28dc33fc8fc43e50819c42c22b0d557b889c107e-arm64'
20- : '28dc33fc8fc43e50819c42c22b0d557b889c107e' ;
18+ process . env . SUI_TOOLS_TAG ||
19+ ( process . arch === 'arm64'
20+ ? '06204e155ea3b35fe4c949321d70091ad0ed8437-arm64'
21+ : '06204e155ea3b35fe4c949321d70091ad0ed8437' ) ;
2122
2223export default async function setup ( { provide } : GlobalSetupContext ) {
2324 console . log ( 'Starting test containers' ) ;
@@ -30,7 +31,6 @@ export default async function setup({ provide }: GlobalSetupContext) {
3031 POSTGRES_DB : 'sui_indexer_v2' ,
3132 } )
3233 . withCommand ( [ '-c' , 'max_connections=500' ] )
33-
3434 . withExposedPorts ( 5432 )
3535 . withNetwork ( network )
3636 . withPullPolicy ( PullPolicy . alwaysPull ( ) )
@@ -42,18 +42,8 @@ export default async function setup({ provide }: GlobalSetupContext) {
4242 'start' ,
4343 '--with-faucet' ,
4444 '--force-regenesis' ,
45- '--with-indexer' ,
46- '--pg-port' ,
47- '5432' ,
48- '--pg-db-name' ,
49- 'sui_indexer_v2' ,
50- '--pg-host' ,
51- pg . getIpAddress ( network . getName ( ) ) ,
52- '--pg-user' ,
53- 'postgres' ,
54- '--pg-password' ,
55- 'postgrespw' ,
5645 '--with-graphql' ,
46+ `--with-indexer=postgres://postgres:postgrespw@${ pg . getIpAddress ( network . getName ( ) ) } :5432/sui_indexer_v2` ,
5747 ] )
5848 . withCopyDirectoriesToContainer ( [
5949 { source : resolve ( __dirname , './data' ) , target : '/test-data' } ,
@@ -68,7 +58,7 @@ export default async function setup({ provide }: GlobalSetupContext) {
6858 . start ( ) ;
6959
7060 provide ( 'faucetPort' , localnet . getMappedPort ( 9123 ) ) ;
71- provide ( 'localnetPort' , localnet . getMappedPort ( 9124 ) ) ;
61+ provide ( 'localnetPort' , localnet . getMappedPort ( 9000 ) ) ;
7262 provide ( 'graphqlPort' , localnet . getMappedPort ( 9125 ) ) ;
7363 provide ( 'suiToolsContainerId' , localnet . getId ( ) ) ;
7464}
0 commit comments